Syntax Highlighting

Merge provides syntax-based colouring for several commonly-used programing languages and text file formats. The controls on this options page enable you to enable or disable syntax highlighting and to customise the colours used for syntactic elements in these languages and file formats.

Information Separate colour options are stored for the light and dark user-interface themes. This makes it possible to customize colours suitably for each theme and switch between them at will.

Use syntax highlighting for recognized file types

Check this box to enable syntax highlighting within compared text files.

Supported languages

This control contains a list of the languages that support syntax highlighting. Choose a language from the list if you would like to change the colours used for syntactic elements of that language. A list of elements for the selected language appears in the control below this one.

Syntactic elements for the selected language

This control contains a list of the colourable syntactic elements of the language selected in the languages list above. Double-click on an item to edit its colour, or select it and choose a colour from the drop-down colour palette below.

Selected element colour

Click this button to change the colour associated with a language element selected in the list above.

Generic…

Click this button to display a configurable list of file types associated with the Generic syntax highlighter. You can use this list to add support for file types not present in the list of supported languages.