Languages

A language element defines how a text file is highlighted and edited. A language is selected by the extension of the filename or the first line of the content, but it can also be changed from the View > Language menu.

Attributes:

NameFormatDescription
patternspattern1 [; pattern2 ...]The list of extension separated by a ';'. If this attribute is empty, and there is no 'first-line-patterns' attribute, this configuration is used as the default one.
first-line-patternspattern1 [; pattern2 ...]The list of matching first lines separated by a ';'. Wildcards '*' are accepted.
encodingdefault
UTF-8
UTF-16-LE
UTF-16-BE
If specified, the file is loaded with the specified encoding even if the file does not contain a BOM marker. A new file is also saved with this encoding.
layoutsingle
tree
hlist
vlist
The layout to use when opening a file of this language.
tabulation-sizesizeSize of tabulations.
fixedtrue
false
Use fixed font by default.
word-wraptrue
false
Turns on the word wrapping.
word-wrap-max-widthwidthThe maximum width for word wrapping, in glyph units. The width is computed using the font for normal text, either fixed or proportional depending on the fixed property.
show-line-typetrue
false
Adds a special symbols in a margin to show sections.
elastic-tabstopstrue
false
Use elastic tabstops by default.
expand-tabulationtrue
false
A tabulation is replaced by whitespaces.
auto-indentationtrue
false
Turns on auto-indentation.
stylizerbatch
css
generic
html
makefile
monochrome
python
ruby
sh
tex
The stylizer is the function that colorize and style the text.. Only the generic stylizer uses all the attributes described below.
line-commentstringThe beginning of a comment line. This attribute is used for folding as well as for colorization.
line-comment-2stringThe beginning of an alternative comment line. This attribute is used for colorization only.
open-commentstringThe beginning of a comment block. This attribute is used for folding as well as for colorization.
close-commentstringThe end of a comment block
open-comment-2stringThe beginning of an alternative comment block
close-comment-2stringThe end of an alternative comment block
preprocessorstringThe preprocessor characters (e.g. '#')
hexa-prefixstringThe hexadecimal prefix (e.g. '0x')
extra-id-charsstringAdditional identifier chars that can be used in keywords. By default the identifier chars are [_A-Za-z0-9]. These additional chars do not apply to the first character of an identifier.
string-delimitercharThe delimiter character for strings
string-escape-charcharThe escape character inside strings
multiline-string-delimitercharThe delimiter character for multiline strings
regex-escape-charcharThe escape character inside a regex (e.g. '\' in Ruby)
char-delimitercharThe delimiter character for characters (or alternative strings)
char-escape-charcharThe escape character inside characters
multiline-char-delimitercharThe delimiter character for multiline characters (or alternative strings)
char-prefixcharThe prefix character for chars (e.g. '$' in Smalltalk)
variable-prefixcharThe prefix character for a variable (e.g. '$' in php). It will highlight this character and the following word with the same color as for words-4
escape-charcharThe escape character
ignore-casetrue
false
'true' if keywords are not case sensitive
user1stringFirst class of words
user2stringSecond class of words
user3stringThird class of words
user4stringFourth class of words