In addition to a built-in set of syntax highlighting parsers for a variety of file types and programming languages, Merge provides a simple generic parser that can be used to highlight other types of file. You can configure a list of file types, together with their keywords, comment styles and operators, to use this generic parser.
File Types
This table contains a list of the file types configured to use the generic syntax highlighting parser. Properties associated with each file type can be viewed by clicking the arrow button to the left of each file type. The name of the file type, and the values of its properties can be edited by double-clicking on them and typing a new value.
Property | Value |
---|---|
Filename and/or extensions | A semicolon-separated list of file names or extensions (e.g. filename). |
Keywords | A space-separated list of words that you would like to have appear in a different colour to normal text. |
Keywords2 | Another space-separated list of words that you would like to have appear in a different colour to normal text. |
Keywords3 | Another space-separated list of words that you would like to have appear in a different colour to normal text. |
Operators | Mathematical operators (e.g. + - * / < >). |
Single-line comments | A space-separated list of characters or words that can begin a single-line comment (e.g. // ; #). |
Multi-line comments (begin) | A space-separated list of characters or words that can begin a multi-line comment (e.g. /* (* {). |
Multi-line comments (end) | A space-separated list of characters or words that can begin a multi-line comment (e.g. */ *) }). |
+ and -
Use these buttons to add and remove file types to and from the table.
The generic parser currently assumes that keywords are case-sensitive, and that both single and double-quotes can be used to denote literal strings. Multi-line comments cannot be nested. Colours can be configured on the Syntax page.