liusuyi
2023-04-24 4737f1e038743ced243c9e52423404d9034d6107
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
CSS classes reference
=====================
 
 
Stylable classes
----------------
 
+------------------------------------------------------------------------------+
| **General-purpose**                                                          |
+--------------------------+---------------------------------------------------+
| keyword                  | keyword in a regular Algol-style language         |
+--------------------------+---------------------------------------------------+
| built_in                 | built-in or library object (constant, class,      |
|                          | function)                                         |
+--------------------------+---------------------------------------------------+
| type                     | user-defined type in a language with first-class  |
|                          | syntactically significant types, like Haskell     |
+--------------------------+---------------------------------------------------+
| literal                  | special identifier for a built-in value ("true",  |
|                          | "false", "null")                                  |
+--------------------------+---------------------------------------------------+
| number                   | number, including units and modifiers, if any.    |
+--------------------------+---------------------------------------------------+
| regexp                   | literal regular expression                        |
+--------------------------+---------------------------------------------------+
| string                   | literal string, character                         |
+--------------------------+---------------------------------------------------+
| subst                    | parsed section inside a literal string            |
+--------------------------+---------------------------------------------------+
| symbol                   | symbolic constant, interned string, goto label    |
+--------------------------+---------------------------------------------------+
| class                    | class or class-level declaration (interfaces,     |
|                          | traits, modules, etc)                             |
+--------------------------+---------------------------------------------------+
| function                 | function or method declaration                    |
+--------------------------+---------------------------------------------------+
| title                    | name of a class or a function at the place of     |
|                          | declaration                                       |
+--------------------------+---------------------------------------------------+
| params                   | block of function arguments (parameters) at the   |
|                          | place of declaration                              |
+--------------------------+---------------------------------------------------+
| **Meta**                                                                     |
+--------------------------+---------------------------------------------------+
| comment                  | comment                                           |
+--------------------------+---------------------------------------------------+
| doctag                   | documentation markup within comments              |
+--------------------------+---------------------------------------------------+
| meta                     | flags, modifiers, annotations, processing         |
|                          | instructions, preprocessor directive, etc         |
+--------------------------+---------------------------------------------------+
| meta-keyword             | keyword or built-in within meta construct         |
+--------------------------+---------------------------------------------------+
| meta-string              | string within meta construct                      |
+--------------------------+---------------------------------------------------+
| **Tags, attributes, configs**                                                |
+--------------------------+---------------------------------------------------+
| section                  | heading of a section in a config file, heading in |
|                          | text markup                                       |
+--------------------------+---------------------------------------------------+
| tag                      | XML/HTML tag                                      |
+--------------------------+---------------------------------------------------+
| name                     | name of an XML tag, the first word in an          |
|                          | s-expression                                      |
+--------------------------+---------------------------------------------------+
| builtin-name             | s-expression name from the language standard      |
|                          | library                                           |
+--------------------------+---------------------------------------------------+
| attr                     | name of an attribute with no language defined     |
|                          | semantics (keys in JSON, setting names in .ini),  |
|                          | also sub-attribute within another highlighted     |
|                          | object, like XML tag                              |
+--------------------------+---------------------------------------------------+
| attribute                | name of an attribute followed by a structured     |
|                          | value part, like CSS properties                   |
+--------------------------+---------------------------------------------------+
| variable                 | variable in a config or a template file,          |
|                          | environment var expansion in a script             |
+--------------------------+---------------------------------------------------+
| **Markup**                                                                   |
+--------------------------+---------------------------------------------------+
| bullet                   | list item bullet in text markup                   |
+--------------------------+---------------------------------------------------+
| code                     | code block in text markup                         |
+--------------------------+---------------------------------------------------+
| emphasis                 | emphasis in text markup                           |
+--------------------------+---------------------------------------------------+
| strong                   | strong emphasis in text markup                    |
+--------------------------+---------------------------------------------------+
| formula                  | mathematical formula in text markup               |
+--------------------------+---------------------------------------------------+
| link                     | hyperlink in text markup                          |
+--------------------------+---------------------------------------------------+
| quote                    | quotation in text markup                          |
+--------------------------+---------------------------------------------------+
| **CSS**                                                                      |
+--------------------------+---------------------------------------------------+
| selector-tag             | tag selector in CSS                               |
+--------------------------+---------------------------------------------------+
| selector-id              | #id selector in CSS                               |
+--------------------------+---------------------------------------------------+
| selector-class           | .class selector in CSS                            |
+--------------------------+---------------------------------------------------+
| selector-attr            | [attr] selector in CSS                            |
+--------------------------+---------------------------------------------------+
| selector-pseudo          | :pseudo selector in CSS                           |
+--------------------------+---------------------------------------------------+
| **Templates**                                                                |
+--------------------------+---------------------------------------------------+
| template-tag             | tag of a template language                        |
+--------------------------+---------------------------------------------------+
| template-variable        | variable in a template language                   |
+--------------------------+---------------------------------------------------+
| **diff**                                                                     |
+--------------------------+---------------------------------------------------+
| addition                 | added or changed line in a diff                   |
+--------------------------+---------------------------------------------------+
| deletion                 | deleted line in a diff                            |
+--------------------------+---------------------------------------------------+
| **ReasonML**                                                                 |
+--------------------------+---------------------------------------------------+
| operator                 | reasonml operator such as pipe                    |
+--------------------------+---------------------------------------------------+
| pattern-match            | reasonml pattern matching matchers                |
+--------------------------+---------------------------------------------------+
| typing                   | type signatures on function parameters            |
+--------------------------+---------------------------------------------------+
| constructor              | type constructors                                 |
+--------------------------+---------------------------------------------------+
| module-access            | scope access into a ReasonML module               |
+--------------------------+---------------------------------------------------+
| module                   | ReasonML module reference within scope access     |
+--------------------------+---------------------------------------------------+
 
 
Language names and aliases
--------------------------
 
The language names and aliases table has moved to `the project
README <https://github.com/highlightjs/highlight.js#supported-languages>`_.