Notepad ++ automatically complete configuration file description

Source: Internet
Author: User
Tags switch case try catch

The basic configurations of notepad ++ built-in language are in Langs. xml. The content includes the language name, comment character (including line comment and block comment), file type suffix, and various levels of keywords.

This is an example of the Java language:


<Language name="java" ext="java" commentLine="//" commentStart="/*" commentEnd="*/">
            <Keywords name="instre1">instanceof assert if else switch case default break goto return for while do continue new throw throws try catch finally this super extends implements import true false null</Keywords>
            <Keywords name="type1">package transient strictfp void char short int long double float const static volatile byte boolean class interface native private protected public final abstract synchronized enum</Keywords>
</Language>

The Automatic completion prompt of words is displayed in the notepad ++ plugins/APIs directory, and an XML file with the same name as the language name. This file is also very simple. An example is as follows:


<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
	<AutoComplete>
		<KeyWord name="above" />
		<KeyWord name="abs" />
		<KeyWord name="acos" />
		<KeyWord name="zIndex" />
		<KeyWord name="_content" />
	</AutoComplete>
</NotepadPlus>

The color font file of the built-in language is in the stylers. xml file.

The color and Keywords of the custom language are both an independent XML file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.