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.