Screem User Manual
Prev | Chapter 6. Features | Next

# 6.3. Syntax Highlighting

As already mentioned in the Getting Started Section Screem supports syntax highlighting. There are a couple of ways to edit the highlighting colours.

- via the Settings->Preferences menu item.

- editing the syntax highlighting files

Obviously the first option is the simplest to do. Select the Colours option in the preferences dialog. This will present you with a selection of frames, allowing you to change the colours for the different syntax groups.

The latter is more compicated. The syntax files themselves utilise XML. The files are stored in `~/.screem/syntax`. A simple syntax file is as follows:

    ?xml version="1.0"?
    screem_syntax
    	typemime type goes here/type

    	group name=group name
    		fore use=1 red=65535 green=0 blue=0
    		back use=0 red=0 green=0 blue=0
    		patternregexp to match goes here/pattern
    	/group
    /screem_syntax

You can have multiple type tags for each mime-type that the highlighting is for. There is no limit on the number of group section there can be. The fore andback elements control the foreground and background colour highlighting. The use attribute determines if highlighting is in use, and the red, green, and blue attributes control the colour.

## 6.3.1. Known problems

- The syntax highlighting causes horrible flickering in the editor on slower machines.

- Doesn't like some expressions in syntax files.

- May cause a crash due to the GtkText widget being so buggy.

Prev | Home | Next
Multiple projects (or Sites) open at once | Up | Previewing Pages