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:
| Name | Format | Description |
|---|---|---|
| patterns | pattern1 [; 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-patterns | pattern1 [; pattern2 ...] | The list of matching first lines separated by a ';'. Wildcards '*' are accepted. |
| encoding | default 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. |
| layout | single tree hlist vlist | The layout to use when opening a file of this language. |
| tabulation-size | size | Size of tabulations. |
| fixed | true false | Use fixed font by default. |
| word-wrap | true false | Turns on the word wrapping. |
| word-wrap-max-width | width | The 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-type | true false | Adds a special symbols in a margin to show sections. |
| elastic-tabstops | true false | Use elastic tabstops by default. |
| expand-tabulation | true false | A tabulation is replaced by whitespaces. |
| auto-indentation | true false | Turns on auto-indentation. |
| stylizer | batch 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-comment | string | The beginning of a comment line. This attribute is used for folding as well as for colorization. |
| line-comment-2 | string | The beginning of an alternative comment line. This attribute is used for colorization only. |
| open-comment | string | The beginning of a comment block. This attribute is used for folding as well as for colorization. |
| close-comment | string | The end of a comment block |
| open-comment-2 | string | The beginning of an alternative comment block |
| close-comment-2 | string | The end of an alternative comment block |
| preprocessor | string | The preprocessor characters (e.g. '#') |
| hexa-prefix | string | The hexadecimal prefix (e.g. '0x') |
| extra-id-chars | string | Additional 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-delimiter | char | The delimiter character for strings |
| string-escape-char | char | The escape character inside strings |
| multiline-string-delimiter | char | The delimiter character for multiline strings |
| regex-escape-char | char | The escape character inside a regex (e.g. '\' in Ruby) |
| char-delimiter | char | The delimiter character for characters (or alternative strings) |
| char-escape-char | char | The escape character inside characters |
| multiline-char-delimiter | char | The delimiter character for multiline characters (or alternative strings) |
| char-prefix | char | The prefix character for chars (e.g. '$' in Smalltalk) |
| variable-prefix | char | The 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-char | char | The escape character |
| ignore-case | true false | 'true' if keywords are not case sensitive |
| user1 | string | First class of words |
| user2 | string | Second class of words |
| user3 | string | Third class of words |
| user4 | string | Fourth class of words |
Code Browser
News Feed