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.

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