]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - highlight.js/classref.txt
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / highlight.js / classref.txt
1 This is a full list of available classes corresponding to languages'
2 syntactic structures. The parentheses after language name contain identifiers
3 used as class names in `<code>` element.
4
5 Python ("python"):
6
7   keyword          keyword
8   built_in         built-in objects (None, False, True and Ellipsis)
9   number           number
10   string           string (of any type)
11   comment          comment
12   decorator        @-decorator for functions
13   function         function header "def some_name(...):"
14   class            class header "class SomeName(...):"
15   title            name of a function or a class inside a header
16   params           everything inside parentheses in a function's or class' header
17
18 Python profiler results ("profile"):
19
20   number           number
21   string           string
22   builtin          builtin function entry
23   filename         filename in an entry
24   summary          profiling summary
25   header           header of table of results
26   keyword          column header
27   function         function name in an entry (including parentheses)
28   title            actual name of a function in an entry (excluding parentheses)
29   prompt           interpreter prompt (>>> or ...)
30
31 Ruby ("ruby"):
32
33   keyword          keyword
34   string           string
35   subst            in-string substitution (#{...})
36   comment          comment
37   yardoctag        YARD tag
38   function         function header "def some_name(...):"
39   class            class header "class SomeName(...):"
40   title            name of a function or a class inside a header
41   parent           name of a parent class
42   symbol           symbol
43
44 Perl ("perl"):
45
46   keyword          keyword
47   comment          comment
48   number           number
49   string           string
50   regexp           regular expression
51   sub              subroutine header (from "sub" till "{")
52   variable         variable starting with "$", "%", "@"
53   operator         operator
54   pod              plain old doc
55
56 PHP ("php"):
57
58   keyword          keyword
59   number           number
60   string           string (of any type)
61   comment          comment
62   phpdoc           phpdoc params in comments
63   variable         variable starting with "$"
64   preprocessor     preprocessor marks: "<?php" and "?>"
65
66 Scala ("scala"):
67
68   keyword          keyword
69   number           number
70   string           string
71   comment          comment
72   annotation       annotation
73   javadoc          javadoc comment
74   javadoctag       @-tag in javadoc
75   class            class header
76   title            class name inside a header
77   params           everything in parentheses inside a class header
78   inheritance      keywords "extends" and "with" inside class header
79
80 Go language ("go"):
81   comment          comment
82   string           string constant
83   number           number
84   keyword          language keywords
85   constant         true false nil iota
86   typename         built-in plain types (int, string etc.)
87   built_in         built-in functions
88
89 HTML, XML ("xml"):
90
91   tag              any tag from "<" till ">"
92   attribute        tag's attribute with or without value
93   value            attribute's value
94   comment          comment
95   pi               processing instruction (<? ... ?>)
96   doctype          <!DOCTYPE ... > declaration
97   cdata            CDATA section
98
99 CSS ("css"):
100
101   tag              tag in selectors
102   id               #some_name in selectors
103   class            .some_name in selectors
104   at_rule          @-rule till first "{" or ";"
105   attr_selector    attribute selector (square brackets in a[href^=http://])
106   pseudo           pseudo classes and elemens (:after, ::after etc.)
107   comment          comment
108   rules            everything from "{" till "}"
109   attribute        property name inside a rule
110   value            property value inside a rule, from ":" till ";" or
111                    till the end of rule block
112   number           number within a value
113   string           string within a value
114   hexcolor         hex color (#FFFFFF) within a value
115   function         CSS function within a value
116   important        "!important" symbol
117
118 Markdown ("markdown"):
119
120   header            header
121   bullet            list bullet
122   emphasis          emphasis
123   strong            strong emphasis
124   blockquote        blockquote
125   code              code
126   horizontal_rule   horizontal rule
127   link_label        link label
128   link_url          link url
129
130 Django ("django"):
131
132   keyword          HTML tag in HTML, default tags and default filters in templates
133   tag              any tag from "<" till ">"
134   comment          comment
135   doctype          <!DOCTYPE ... > declaration
136   attribute        tag's attribute with or withou value
137   value            attribute's value
138   template_tag     template tag {% .. %}
139   variable         template variable {{ .. }}
140   template_comment template comment, both {# .. #} and {% comment %}
141   filter           filter from "|" till the next filter or the end of tag
142   argument         filter argument
143
144 JSON ("json"):
145
146   number           number
147   literal          "true", "false" and "null"
148   string           string value
149   attribute        name of an object property
150   value            value of an object property
151
152 JavaScript ("javascript"):
153
154   keyword          keyword
155   comment          comment
156   number           number
157   literal          special literal: "true", "false" and "null"
158   string           string
159   regexp           regular expression
160   function         header of a function
161   title            name of a function inside a header
162   params           parentheses and everything inside them in a function's header
163
164 CoffeeScript ("coffeescript"):
165
166   keyword          keyword
167   comment          comment
168   number           number
169   literal          special literal: "true", "false" and "null"
170   string           string
171   regexp           regular expression
172   function         header of a function
173   class            header of a class
174   title            name of a function variable inside a header
175   params           parentheses and everything inside them in a function's header
176   property         @-property within class and functions
177
178 ActionScript ("actionscript"):
179
180   comment          comment
181   string           string
182   number           number
183   keyword          keywords
184   literal          literal
185   reserved         reserved keyword
186   title            name of declaration (package, class or function)
187   preprocessor     preprocessor directive (import, include)
188   type             type of returned value (for functions)
189   package          package (named or not)
190   class            class/interface
191   function         function
192   param            params of function
193   rest_arg         rest argument of function
194
195 VBScript ("vbscript"):
196
197   keyword          keyword
198   number           number
199   string           string
200   comment          comment
201   built_in         built-in function
202
203 HTTP ("http"):
204
205   request          first line of a request
206   status           first line of a response
207   attribute        header name
208   string           header value or query string in a request line
209   number           status code
210
211 Lua ("lua"):
212
213   keyword          keyword
214   number           number
215   string           string
216   comment          comment
217   built_in         built-in operator
218   function         header of a function
219   title            name of a function inside a header
220   params           everything inside parentheses in a function's header
221   long_brackets    multiline string in [=[ .. ]=]
222
223 Delphi ("delphi"):
224
225   keyword          keyword
226   comment          comment (of any type)
227   number           number
228   string           string
229   function         header of a function, procedure, constructor and destructor
230   title            name of a function, procedure, constructor or destructor
231                    inside a header
232   params           everything inside parentheses in a function's header
233   class            class' body from "= class" till "end;"
234
235 Java ("java"):
236
237   keyword          keyword
238   number           number
239   string           string
240   comment          commment
241   annotaion        annotation
242   javadoc          javadoc comment
243   class            class header from "class" till "{"
244   title            class name inside a header
245   params           everything in parentheses inside a class header
246   inheritance      keywords "extends" and "implements" inside class header
247
248 C++ ("cpp"):
249
250   keyword          keyword
251   number           number
252   string           string and character
253   comment          comment
254   preprocessor     preprocessor directive
255   stl_container    instantiation of STL containers ("vector<...>")
256
257 Objective C ("objectivec"):
258   keyword          keyword
259   built_in         Cocoa/Cocoa Touch constants and classes
260   number           number
261   string           string
262   comment          comment
263   preprocessor     preprocessor directive
264   class            interface/implementation, protocol and forward class declaration
265   variable         properties and struct accesors
266
267 Vala ("vala"):
268
269   keyword          keyword
270   number           number
271   string           string
272   comment          comment
273   class            class definitions
274   title            in class definition
275   constant         ALL_UPPER_CASE
276
277 C# ("cs"):
278
279   keyword          keyword
280   number           number
281   string           string
282   comment          commment
283   xmlDocTag        xmldoc tag ("///", "<!--", "-->", "<..>")
284
285 D language ("d"):
286
287   comment          comment
288   string           string constant
289   number           number
290   keyword          language keywords (including @attributes)
291   constant         true false null
292   built_in         built-in plain types (int, string etc.)
293
294 RenderMan RSL ("rsl"):
295
296   keyword          keyword
297   number           number
298   string           string (including @"..")
299   comment          comment
300   preprocessor     preprocessor directive
301   shader           sahder keywords
302   shading          shading keywords
303   built_in         built-in function
304
305 RenderMan RIB ("rib"):
306
307   keyword          keyword
308   number           number
309   string           string
310   comment          comment
311   commands         command
312
313 Maya Embedded Language ("mel"):
314
315   keyword          keyword
316   number           number
317   string           string
318   comment          comment
319   variable         variable
320
321 SQL ("sql"):
322
323   keyword          keyword (mostly SQL'92 and SQL'99)
324   number           number
325   string           string (of any type: "..", '..', `..`)
326   comment          comment
327   aggregate        aggregate function
328
329 Smalltalk ("smalltalk"):
330
331   keyword          keyword
332   number           number
333   string           string
334   comment          commment
335   symbol           symbol
336   array            array
337   class            name of a class
338   char             char
339   localvars        block of local variables
340
341 Lisp ("lisp"):
342
343   keyword          keyword
344   number           number
345   string           string
346   comment          commment
347   variable         variable
348   literal          b, t and nil
349   list             non-quoted list
350   title            first symbol in a non-quoted list
351   body             remainder of the non-quoted list
352   quoted           quoted list, both "(quote .. )" and "'(..)"
353
354 Clojure ("clojure"):
355
356   comment          comments and hints
357   string           string
358   number           number
359   collection       collections
360   attribute        :keyword
361   title            function name (built-in or user defined)
362   built_in         built-in function name
363
364 Ini ("ini"):
365
366   title            title of a section
367   value            value of a setting of any type
368   string           string
369   number           number
370   keyword          boolean value keyword
371
372 Apache ("apache"):
373
374   keyword          keyword
375   number           number
376   comment          commment
377   literal          On and Off
378   sqbracket        variables in rewrites "%{..}"
379   cbracket         options in rewrites "[..]"
380   tag              begin and end of a configuration section
381
382 Nginx ("nginx"):
383
384   title            directive title
385   string           string
386   number           number
387   comment          comment
388   built_in         built-in constant
389   variable         $-variable
390   regexp           regexp
391
392 Diff ("diff"):
393
394   header           file header
395   chunk            chunk header within a file
396   addition         added lines
397   deletion         deleted lines
398   change           changed lines
399
400 DOS ("dos"):
401
402   keyword          keyword
403   flow             batch control keyword
404   stream           DOS special files ("con", "prn", ...)
405   winutils         some commands (see dos.js specifically)
406   envvar           environment variables
407
408 Bash ("bash"):
409
410   keyword          keyword
411   string           string
412   number           number
413   comment          comment
414   literal          special literal: "true" и "false"
415   variable         variable
416   shebang          script interpreter header
417
418 CMake ("cmake")
419
420   keyword          keyword
421   number           number
422   string           string
423   comment          commment
424   envvar           $-variable
425
426 Axapta ("axapta"):
427
428   keyword          keyword
429   number           number
430   string           string
431   comment          commment
432   class            class header from "class" till "{"
433   title            class name inside a header
434   params           everything in parentheses inside a class header
435   inheritance      keywords "extends" and "implements" inside class header
436   preprocessor     preprocessor directive
437
438 1C ("1c"):
439
440   keyword          keyword
441   number           number
442   date             date
443   string           string
444   comment          commment
445   function         header of function or procudure
446   title            function name inside a header
447   params           everything in parentheses inside a function header
448   preprocessor     preprocessor directive
449
450 AVR assembler ("avrasm"):
451
452   keyword          keyword
453   built_in         pre-defined register
454   number           number
455   string           string
456   comment          commment
457   label            label
458   preprocessor     preprocessor directive
459   localvars        substitution in .macro
460
461 VHDL ("vhdl")
462
463   keyword          keyword
464   number           number
465   string           string
466   comment          commment
467   literal          signal logical value
468   typename         typename
469   attribute        signal attribute
470
471 Parser3 ("parser3"):
472
473   keyword          keyword
474   number           number
475   comment          commment
476   variable         variable starting with "$"
477   preprocessor     preprocessor directive
478   title            user-defined name starting with "@"
479
480 TeX ("tex"):
481
482   comment          comment
483   number           number
484   command          command
485   parameter        parameter
486   formula          formula
487   special          special symbol
488
489 Haskell ("haskell"):
490
491   keyword          keyword
492   number           number
493   string           string
494   comment          comment
495   class            type classes and other data types
496   title            function name
497   type             type class name
498   typedef          definition of types (type, newtype, data)
499
500 Erlang ("erlang"):
501
502   comment          comment
503   string           string
504   number           number
505   keyword          keyword
506   record_name      record access (#record_name)
507   title            name of declaration function
508   variable         variable (starts with capital letter or with _)
509   pp.keywords      module's attribute (-attribute)
510   function_name    atom or atom:atom in case of function call
511
512 Rust ("rust"):
513
514   comment          comment
515   string           string
516   number           number
517   keyword          keyword
518   title            name of declaration
519   preprocessor     preprocessor directive
520
521 Matlab ("matlab"):
522
523   comment          comment
524   string           string
525   number           number
526   keyword          keyword
527   title            function name
528   function         function
529   param            params of function
530   matrix           matrix in [ .. ]
531   cell             cell in { .. }
532
533 R ("r"):
534
535   comment          comment
536   string           string constant
537   number           number
538   keyword          language keywords (function, if) plus "structural"
539                    functions (attach, require, setClass)
540   literal          special literal: TRUE, FALSE, NULL, NA, etc.
541
542 OpenGL Shading Language ("glsl"):
543
544   comment          comment
545   number           number
546   preprocessor     preprocessor directive
547   keyword          keyword
548   built_in         GLSL built-in functions and variables
549   literal          true false
550
551 AppleScript ("applescript"):
552
553   keyword          keyword
554   command          core AppleScript command
555   constant         AppleScript built in constant
556   type             AppleScript variable type (integer, etc.)
557   property         Applescript built in property (length, etc.)
558   number           number
559   string           string
560   comment          comment
561   title            name of a handler
562
563 Brainfuck ("brainfuck"):
564
565   title            Brainfuck while loop command
566   literal          Brainfuck inc and dec commands
567   comment          comment
568   string           Brainfuck input and output commands