Custom Syntax Files |
|
Compare It! can use syntax highlighting to simplify reading of comparison results for source code files. Syntaxes for C++, C#, Java, Delphi and HTML are supported internally, but you can add your own syntax files for other languages. The default extension for these files is chl. The format of the language files is compatible with files used by the ConTEXT editor.
To use a custom syntax file:
- Create a custom language definition file.
- Place the file (with a .chl extension) in a new "Syntax" folder.
- Follow the instructions in Options dialog box: File Filters to add the custom syntax file.
Custom Syntax File Format
A syntax file is a simple text file with key/value pairs, delimited with a colon (:). Here is a typical example:
Language: CSharp
Filter: CSharp files (*.cs)|*.cs
CaseSensitive: 1
LineComment: //
BlockCommentBeg: /*
BlockCommentEnd: */
This format is compatible with files used by the ConTEXT editor (freeware). If you need a syntax file for an additional language, be sure to check the their site, it already has a collection of dozens of languages.
Currently, only a limited set of keys is supported. This list will grow in the future:
|