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.
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:
KeyWords1: as new break switch finally case fixed throw catch for try checked foreach typeof goto lock
© 1996-2010, Grig Software, All Rights Reserved |
![]() ![]() |