Home >  Products >  Compare It! 3 >  Online Help
Welcome to Compare It!
About Compare It!
Installing and Removing Compare It!
What's New in This release?
Quick Start
User Interface Basics
Application Window Illustration
Using Compare It!
Comparing files
Merging Files
Editing Files
Setting Options
File Filters
Advanced Comparison
Printing and Reporting
Print options
Print Options: Margins
Print Options: Advanced
Comparison report
Comparison statistics
Keyboard Shortcuts, Toolbar Buttons, Menu Commands
Advanced Functions
Adding Shortcuts to External Applications
Adaptive comparison
Auto Backup
Automatch rules
Command Line Usage
Configuration File
Changes Only Mode
Custom Syntax Files
Defining Column Ranges
Enhanced Open File
File lists support
Folders comparison
Ignore Difference
Manual Matching
Merged Report
Moved Sections
Partial matching
Result File Support
Unicode Support
Using Compare It! with File Manager
Using fixed/alternative font
Using Regular Expressions
Using RegExps substrings
Word files comparison
Excel files comparison
Other file formats support
Zip File Support
General Information
What is Shareware?
How To Register
Warranty and License
Future Releases
Other Products
Frequently Asked Questions
Updates and Support
Custom Syntax Files Changes only mode Columns range

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:

  1. Create a custom language definition file.
  2. Place the file (with a .chl extension) in a new "Syntax" folder.
  3. 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:

  • CaseSensitive - whether keywords are case-sensitive (1/0)
  • LineComment - sequence to begin comment, which ends with line
  • BlockCommentBeg/BlockCommentEnd, BlockCommentBeg2/BlockCommentEnd2 - block comments
  • KeyWords1, KeyWords2, KeyWords3 - list of keywords, delimited with spaces, may continue on several lines:
    KeyWords1:              as new break switch finally case fixed throw
                            catch for try checked foreach typeof goto lock
  • StringBegChar - character to limit strings
  • CharSymbol - character to limit single character
  • UsePreprocessor - whether to use preprocessor (1/0)
  • IdentifierBegChars - which symbols can start identifier
  • IdentifierChars - which characters can be in identifier
  • EscapeChar - symbol for inserting other special symbols into text as is

© 1996-2009, Grig Software, All Rights Reserved Changes only mode Columns range
Browser Based Help. Published by chm2web software.