Syntax file format

From EditPlus Wiki
Revision as of 09:06, 9 February 2006 by 203.162.27.86 (Talk)

Jump to: navigation, search

EditPlus uses a simple, plain text syntax file format to describe a programming language for syntax highlighting.

EditPlus comes with 12 syntax (.stx) files, located in "C:\Program Files\EditPlus 2", which can be opened and modified within EditPlus. You can also create your own custom syntax file (or use one created by someone else) and configure EditPlus to associate it with a certain file extension by going to Tools > Preferences > Files > Settings & Syntax.

To download syntax files, see syntax files.

File Format

Comments

You can comment a line by beginning it with a ';' (semicolon). If you need to add a keyword which begins with semicolon, you must prefix it with an escape character '^' (caret).

Header Information

If a header statement has no value, leave it blank after the '=' (equal sign).

#TITLE= 
The title of the syntax file. It should be located at the first line of the file. Otherwise, EditPlus cannot load it.
#DELIMITER= 
Specify delimiters for parsing keywords. You don't need to specify the space character and the tab character here, since those are treated as delimiters by default.
#QUOTATION1= 
Specify quotation mark. Enter only one character.
#QUOTATION2= 
Specify alternate quotation mark. Enter only one character.
#CONTINUE_QUOTE= 
This option allows un-terminated quotation to be continued to next line. 'y' for yes and 'n' for no. 'n' is default value.
#LINECOMMENT= 
Specify a string which turns on line comment. If you prefix ^! to the line comment string, it works only when located at the beginning of line.
#LINECOMMENT2= 
Specify a string which turns on line comment 2. If you prefix ^! to the line comment string, it works only when located at the beginning of line.
#COMMENTON= 
Specify a string which turns on block comment.
#COMMENTOFF= 
Specify a string which turns off block comment.
#COMMENTON2= 
Specify a string which turns on block comment 2.
#COMMENTOFF2= 
Specify a string which turns off block comment 2.
#ESCAPE= 
Specify escape character. Enter only one character here.
#CASE= 
Specify case sensitivity. 'y' for yes and 'n' for no. Default value is 'n'.
#PREFIX1= through #PREFIX5= 
Specify keyword prefix character. Any word that follows the prefix will be treated as a keyword.
#SUFFIX1= through #SUFFIX5= 
Specify keyword suffix character. Any word that precedes the suffix will be treated as a keyword.
#HTML_EMBEDDED= 
Specify 'y' if it is HTML-embedded script such as PHP. See 'PHP.STX' for an example.
#SCRIPT_BEGIN= 
Specify the string which turns on HTML-embedded script. Valid only if ; #HTML_EMBEDDED is 'y'. See 'PHP.STX' for an example.
#SCRIPT_END= 
Specify the string which turns off HTML-embedded script. Valid only if ; #HTML_EMBEDDED is 'y'. See 'PHP.STX' for an example.
#NUMBER_PATTERN= 
'cpp' for C/C++ number syntax highlighting.
#SPECIAL_STX= 
'html' for HTML syntax file, 'cpp' for C/C++ syntax file, and 'perl' for Perl syntax file. Leave blank for all other syntax files
#AUTOCASE= 
Automatic case correction.
#SKIP_QUOTE= 
Avoid problems like SCRIPT_END characters within quotes. For example "?>" in php should not close the script highlighting

Keyword groups

Each of a maximum of 5 keyword groups begins with the #KEYWORD statement and an optional description of the group. The keyword list follows from the next line. If you need to include a '#' sign into a keyword, you must prefix it with an escape character '^' (caret) like this: '^#'. If such keywords exist, the '#' sign should not be included in #DELIMITER header statement above.

#KEYWORD=Reserved words
abstract
boolean
break

#KEYWORD=Compiler directives
...

Other File Formats

External Links

ambien adipex xanax xenical cialis valium fioricet tramadol carisoprodol hydrocodone ultram vicodin buy viagra ambien adipex tramadol buy ambien buy adipex buy xanax buy phentermine buy viagra buy xenical cialis valium fioricet tramadol carisoprodol buy soma hydrocodone ultram vicodin meridia alprazolam levitra didrex diazepam propecia zoloft lipitor buy viagra buy phentermine buy ambien buy adipex buy xenical buy xanax buy cialis buy valium buy fioricet buy tramadol buy carisoprodol buy soma buy hydrocodone ultram vicodin meridia alprazolam levitra didrex diazepam propecia zoloft lipitor phentermine ambien xanax phentermine viagra ambien adipex xanax xenical buy cialis buy valium buy fioricet buy tramadol buy carisoprodol buy hydrocodone buy ambien buy adipex xenical cialis valium fioricet tramadol carisoprodol hydrocodone buy propecia free ringtones nextel ringtones viagra viagra buy phentermine ambien adipex xanax xenical cialis valium fioricet tramadol carisoprodol buy soma hydrocodone ultram levitra didrex meridia alprazolam vicodin diazepam zoloft lipitor buy viagra buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy fioricet buy tramadol buy carisoprodol buy hydrocodone buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy ambien buy adipex buy ambien buy xanax buy xenical buy cialis buy valium buy fioricet buy tramadol buy carisoprodol buy hydrocodone buy phentermine buy viagra didrex meridia buy viagra phentermine ambien adipex xanax xenical cialis buy phentermine buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy tramadol buy hydrocodone ambien adipex buy fioricet buy carisoprodol meridia alprazolam ultram levitra didrex phentermine xanax cialis xenical vicodin propecia lipitor zoloft valium fioricet diazepam hydrocodone carisoprodol tramadol buy phentermine buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy fioricet buy tramadol phentermine buy carisoprodol buy hydrocodone adipex cialis ambien xanax xenical ultram vicodin meridia alprazolam levitra didrex diazepam propecia lipitor zoloft valium fioricet carisoprodol hydrocodone tramadol buy phentermine buy ambien buy xanax buy adipex buy xenical buy cialis buy valium buy fioricet buy viagra buy ambien buy adipex buy xenical buy xanax hydrocodone buy hydrocodone xanax ultram vicodin meridia alprazolam levitra didrex diazepam propecia zoloft lipitor buy viagra ambien buy ambien buy adipex adipex buy xanax xenical valium fioricet buy tramadol carisoprodol buy soma buy tramadol buy carisoprodol buy hydrocodone ambien didrex buy ambien order viagra order phentermine buy adipex buy phentermine buy xanax buy xenical buy valium buy tramadol buy fioricet buy carisoprodol buy cialis buy hydrocodone buy viagra buy phentermine buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy fioricet buy tramadol buy carisoprodol buy hydrocodone meridia didrex ambien adipex buy phentermine ambien adipex adipex xanax buy phentermine buy ambien buy adipex buy xanax buy xenical buy cialis buy valium buy cialis ultram vicodin meridia didrex levitra diazepam alprazolam propecia zoloft lipitor xenical phentermine ambien adipex phentermine xanax xenical cialis valium fioricet tramadol carisoprodol hydrocodone ultram vicodin meridia alprazolam levitra didrex diazepam buy ambien buy phentermine buy adipex buy xanax buy xenical