The code elements that CotEditor's syntax coloring supports are as follows:
| element | description | examples |
|---|---|---|
| Keywords | Keywords in source code such as reserved words of programming languages. | for, while, if |
| Commands | Functions or commands in source code. | print, filter, func() |
| Types | Types in source code or headings in structured language. | int, bool, Object |
| Attributes | Attributes in source code. | <html lang="ja">, @classmethod |
| Variables | Variables in source code. | $foo, self |
| Values | Value constants in source code. | Null, True, False |
| Numbers | Numeric constants in source code. | Int i = 0; |
| Strings | String constants in source code. | String s = "Hello World" |
| Characters | Character constants in source code. | Char c = 'a' |
| Comments | Comments in source code. | /* 〜 */, # 〜 |