CSS classes reference¶
This is a full list of available classes corresponding to languages’
syntactic structures. The parentheses after language name contain identifiers
used as class names in <code> element.
Python (“python”, “py”, “gyp”)¶
keyword: keywordbuilt_in: built-in objects (None, False, True and Ellipsis)number: numberstring: string (of any type)comment: commentdecorator: @-decorator for functionsfunction: function header “def some_name(...):”class: class header “class SomeName(...):”title: name of a function or a class inside a headerparams: everything inside parentheses in a function’s or class’ header
Python profiler results (“profile”)¶
number: numberstring: stringbuilt_in: built-in function entryfilename: filename in an entrysummary: profiling summaryheader: header of table of resultskeyword: column headerfunction: function name in an entry (including parentheses)title: actual name of a function in an entry (excluding parentheses)prompt: interpreter prompt (>>> or ...)
Ruby (“ruby”, “rb”, “gemspec”, “podspec”, “thor”, “irb”)¶
keyword: keywordstring: stringsubst: in-string substitution (#{...})comment: commentyardoctag: YARD tagfunction: function header “def some_name(...):”class: class header “class SomeName(...):”title: name of a function or a class inside a headerparent: name of a parent classsymbol: symbolinput: complete input line (interpreter)output: complete output line (interpreter)prompt: interpreter prompt (>>)status: interpreter response (=>)
Haml (“haml”)¶
tag: any tag starting with “%”title: tag’s nameattribute: tag’s attributekeyword: tag’s attribute that is a keywordstring: attribute’s value that is a stringvalue: attribute’s value, shorthand id or class for tagcomment: commentdoctype: !!! declarationbullet: line defined by variable
Perl (“perl”, “pl”)¶
keyword: keywordcomment: commentnumber: numberstring: stringregexp: regular expressionsub: subroutine header (from “sub” till “{”)variable: variable starting with “$”, “%”, “@”operator: operatorpod: plain old doc
PHP (“php”, “php3”, “php4”, “php5”, “php6”)¶
keyword: keywordnumber: numberstring: string (of any type)comment: commentphpdoc: phpdoc params in commentsvariable: variable starting with “$”preprocessor: preprocessor marks: “<?php” and ”?>”
Scala (“scala”)¶
keyword: keywordnumber: numberstring: stringcomment: commentannotation: annotationjavadoc: javadoc commentjavadoctag: @-tag in javadocclass: class headertitle: class name inside a headerparams: everything in parentheses inside a class headerinheritance: keywords “extends” and “with” inside class header
Groovy (“groovy)¶
keyword: keywordnumber: numberstring: string, map string keys and named argument labelsregex: regular expressioncomment: commentannotation: annotationjavadoc: javadoc commentjavadoctag: @-tag in javadocclass: class headertitle: class name inside a headerlabel: labelshebang: Groovy shell script header
Go (“go”, “golang”)¶
comment: commentstring: string constantnumber: numberkeyword: language keywordsconstant: true false nil iotatypename: built-in plain types (int, string etc.)built_in: built-in functions
Gradle (“gradle”)¶
keyword: keywordnumber: numberstring: string and charactercomment: commentregexp: regular expression
HTML, XML (“xml”, “html”, “xhtml”, “rss”, “atom”, “xsl”, “plist”)¶
tag: any tag from “<” till “>”attribute: tag’s attribute with or without valuevalue: attribute’s valuecomment: commentpi: processing instruction (<? ... ?>)doctype: <!DOCTYPE ... > declarationcdata: CDATA section
Lasso (“lasso”, “ls”, “lassoscript”)¶
preprocessor: delimiters and interpreter flagsshebang: Lasso 9 shell script headercomment: single- or multi-line commentjavadoc: doc commentkeyword: keywordliteral: keyword representing a valuebuilt_in: built-in types and variablesnumber: numberstring: stringvariable: variable reference starting with “#” or “$”tag: tag literalattribute: named or rest parameter in method signaturesubst: unary/binary/ternary operator symbolsclass: type, trait, or method headertitle: name following “define” inside a header
CSS (“css”)¶
tag: tag in selectorsid: #some_name in selectorsclass: .some_name in selectorsat_rule: @-rule till first “{” or ”;”attr_selector: attribute selector (square brackets in a[href^=http://])pseudo: pseudo classes and elements (:after, ::after etc.)comment: commentrules: everything from “{” till “}”attribute: property name inside a rulevalue: property value inside a rule, from ”:” till ”;” or till the end of rule blocknumber: number within a valuestring: string within a valuehexcolor: hex color (#FFFFFF) within a valuefunction: CSS function within a valueimportant: ”!important” symbol
SCSS (“scss”)¶
tag: tag in selectorsid: #some_name in selectorsclass: .some_name in selectorsat_rule: @-rule till first “{” or ”;”attr_selector: attribute selector (square brackets in a[href^=http://])pseudo: pseudo classes and elements (:after, ::after etc.)comment: commentrules: everything from “{” till “}”attribute: property name inside a rulevalue: property value inside a rule, from ”:” till ”;” or till the end of rule blocknumber: number within a valuestring: string within a valuehexcolor: hex color (#FFFFFF) within a valuefunction: CSS function within a valueimportant: ”!important” symbolvariable: variable starting with “$”preprocessor: keywords after @
Markdown (“markdown”, “md”, “mkdown”, “mkd”)¶
header: headerbullet: list bulletemphasis: emphasisstrong: strong emphasisblockquote: blockquotecode: codehorizontal_rule: horizontal rulelink_label: link labellink_url: link urllink_reference: link reference
AsciiDoc (“asciidoc”)¶
header: headingbullet: list or labeled bulletemphasis: emphasisstrong: strong emphasisblockquote: blockquotecode: inline or block codehorizontal_rule: horizontal rulelink_label: link or image labellink_url: link or image urlcomment: commentattribute: document attribute, block attributeslabel: admonition label
Django (“django”, “jinja”)¶
keyword: HTML tag in HTML, default tags and default filters in templatestag: any tag from “<” till “>”comment: commentdoctype: <!DOCTYPE ... > declarationattribute: tag’s attribute with or without valuevalue: attribute’s valuetemplate_tag: template tag {% .. %}variable: template variable {{ .. }}template_comment: template comment, both {# .. #} and {% comment %}filter: filter from “|” till the next filter or the end of tagargument: filter argument
Handlebars (“handlebars”, “hbs”, “html.hbs”, “html.handlebars”)¶
expression: expression to be evaluatedvariable: variablebegin-block: the beginning of a blockend-block: the ending of a blockstring: string
Dust (“dust”, “dst”)¶
expression: expression to be evaluatedvariable: variablebegin-block: the beginning of a blockend-block: the ending of a blockstring: string
JSON (“json”)¶
number: numberliteral: “true”, “false” and “null”string: string valueattribute: name of an object propertyvalue: value of an object property
Mathematica (“mathematica”, “mma”)¶
keyword: keywordnumber: numbercomment: commentstring: stringlist: a list { .. } - the basic Mma structure
JavaScript (“javascript”, “js”)¶
keyword: keywordcomment: commentnumber: numberliteral: special literal: “true”, “false” and “null”string: stringregexp: regular expressionfunction: header of a functiontitle: name of a function inside a headerparams: parentheses and everything inside them in a function’s headerpi: ‘use strict’ processing instruction
TypeScript (“typescript”, “ts”)¶
keyword: keywordcomment: commentnumber: numberliteral: special literal: “true”, “false” and “null”string: stringregexp: regular expressionfunction: header of a functiontitle: name of a function inside a headerparams: parentheses and everything inside them in a function’s headerpi: ‘use strict’ processing instruction
CoffeeScript (“coffeescript”, “coffee”, “cson”, “iced”)¶
keyword: keywordcomment: commentnumber: numberliteral: special literal: “true”, “false” and “null”built_in: built-in objects and functions (“window”, “console”, “require”, etc...)string: stringsubst: #{ ... } interpolation in double-quoted stringsregexp: regular expressionfunction: header of a functionclass: header of a classtitle: name of a function variable inside a headerparams: parentheses and everything inside them in a function’s headerproperty: @-property within class and functions
Dart (“dart”)¶
keyword: keywordliteral: keyword that can be uses as identifier but have special meaning in some casesbuilt_in: some of basic built in classes and functionnumber: numberstring: stringsubst: in-string substitution (${...})comment: commmentannotaion: annotationdartdoc: dartdoc commentclass: class header from “class” till “{“title: class name
ActionScript (“actionscript”, “as”)¶
comment: commentstring: stringnumber: numberkeyword: keywordsliteral: literalreserved: reserved keywordtitle: name of declaration (package, class or function)preprocessor: preprocessor directive (import, include)type: type of returned value (for functions)package: package (named or not)class: class/interfacefunction: functionparam: params of functionrest_arg: rest argument of function
Haxe (“haxe”, “hx”)¶
comment: commentstring: stringnumber: numberkeyword: keywordsliteral: literalreserved: reserved keywordtitle: name of declaration (package, class or function)preprocessor: preprocessor directive (if, else, elseif, error)type: type of returned value (for functions)package: package (named or not)class: class/interfacefunction: functionparam: params of functionrest_arg: rest argument of function
VBScript (“vbscript”, “vbs”)¶
keyword: keywordnumber: numberstring: stringcomment: commentbuilt_in: built-in function
VB.Net (“vbnet”, “vb”)¶
keyword: keywordbuilt_in: built-in typesliteral: “true”, “false” and “nothing”string: stringcomment: commentxmlDocTag: xmldoc tag (“’‘’”, “<!–”, “–>”, “<..>”)preprocessor: preprocessor directive
Protocol Buffers (“protobuf”)¶
keyword: keywordbuilt_in: built-in types (e.g. int64, string)string: stringnumber: numberliteral: “true” and “false”comment: commentclass: message, service or enum definition headertitle: message, service or enum identifierfunction: RPC call identifier
Cap’n Proto (“capnproto”, “capnp”)¶
shebang: message identifierkeyword: keywordbuilt_in: built-in types (e.g. Int64, Text)string: stringnumber: number or field number (e.g. @N)literal: “true” and “false”comment: commentclass: message, interface or enum definition headertitle: message, interface or enum identifier
Thrift (“thrift”)¶
keyword: keywordbuilt_in: built-in types (e.g. byte, i32)string: stringnumber: numberliteral: “true” and “false”comment: commentclass: struct, enum, service or exception definition headertitle: struct, enum, service or exception identifierstl_container: instantiation of STL-like containers (“list<...>”)
HTTP (“http”)¶
request: first line of a requeststatus: first line of a responseattribute: header namestring: header value or query string in a request linenumber: status code
Lua (“lua”)¶
keyword: keywordnumber: numberstring: stringcomment: commentbuilt_in: built-in operatorfunction: header of a functiontitle: name of a function inside a headerparams: everything inside parentheses in a function’s headerlong_brackets: multiline string in [=[ .. ]=]
Delphi (“delphi”)¶
keyword: keywordcomment: comment (of any type)number: numberstring: stringfunction: header of a function, procedure, constructor and destructortitle: name of a function, procedure, constructor or destructor inside a headerparams: everything inside parentheses in a function’s headerclass: class’ body from “= class” till “end;”
Oxygene (“oxygene”)¶
keyword: keywordcomment: comment (of any type)string: string/charfunction: method, destructor, procedure or functiontitle: name of a function (inside function)params: everything inside parentheses in a function’s headernumber: numberclass: class’ body from “= class” till “end;”
Java (“java”, “jsp”)¶
keyword: keywordnumber: numberstring: stringcomment: commentannotaion: annotationjavadoc: javadoc commentclass: class header from “class” till “{“function: method headertitle: class or method nameparams: everything in parentheses inside a class headerinheritance: keywords “extends” and “implements” inside class header
C++ (“cpp”, “c”, “h”, “c++”, “h++”)¶
keyword: keywordnumber: numberstring: string and charactercomment: commentpreprocessor: preprocessor directivestl_container: instantiation of STL containers (“vector<...>”)
Objective C (“objectivec”, “m”, “mm”, “objc”, “obj-c”)¶
keyword: keywordbuilt_in: Cocoa/Cocoa Touch constants and classesnumber: numberstring: stringcomment: commentpreprocessor: preprocessor directiveclass: interface/implementation, protocol and forward class declarationtitle: title (id) of interface, implementation, protocol, classvariable: properties and struct accessors
Vala (“vala”)¶
keyword: keywordnumber: numberstring: stringcomment: commentclass: class definitionstitle: in class definitionconstant: ALL_UPPER_CASE
C# (“cs”, “csharp”)¶
keyword: keywordnumber: numberstring: stringcomment: commentxmlDocTag: xmldoc tag (“///”, “<!–”, “–>”, “<..>”)class: class header from “class” till “{“function: method headertitle: title of namespace or class
F# (“fsharp”, “fs”)¶
keywords: keywordnumber: numberstring: stringcomment: commentclass: any custom F# typetitle: the name of a custom F# typeannotation: any attribute
OCaml (“ocaml”, “ml”)¶
keywords: keywordnumber: numberstring: stringcomment: commentclass: any custom OCaml typetitle: the name of a custom OCaml typeannotation: any attribute
D (“d”)¶
comment: commentstring: string constantnumber: numberkeyword: language keywords (including @attributes)constant: true false nullbuilt_in: built-in plain types (int, string etc.)
RenderMan RSL (“rsl”)¶
keyword: keywordnumber: numberstring: string (including @”..”)comment: commentpreprocessor: preprocessor directiveshader: shader keywordsshading: shading keywordsbuilt_in: built-in function
RenderMan RIB (“rib”)¶
keyword: keywordnumber: numberstring: stringcomment: commentcommands: command
Maya Embedded Language (“mel”)¶
keyword: keywordnumber: numberstring: stringcomment: commentvariable: variable
SQL (“sql”)¶
keyword: keyword (mostly SQL‘92, SQL‘99 and T-SQL)literal: special literal: “true” and “false”built_in: built-in type namenumber: numberstring: string (of any type: ”..”, ‘..’, `..`)comment: comment
Smalltalk (“smalltalk”, “st”)¶
keyword: keywordnumber: numberstring: stringcomment: commentsymbol: symbolarray: arrayclass: name of a classchar: charlocalvars: block of local variables
Lisp (“lisp”)¶
number: numberstring: stringcomment: commentvariable: variableliteral: b, t and nillist: non-quoted listkeyword: first symbol in a non-quoted listbody: remainder of the non-quoted listquoted: quoted list, both “(quote .. )” and “’(..)”
Clojure (“clojure”, “clj”)¶
comment: comments and hintsstring: stringnumber: numbercollection: collectionsattribute: :keywordlist: non-quoted listkeyword: first symbol in a listbuilt_in: built-in function name as the first symbol in a list
Scheme (“scheme”)¶
shebang: script interpreter headercomment: commentstring: stringnumber: numberregexp: regexpvariable: single-quote ‘identifierlist: non-quoted listkeyword: first symbol in a listbuilt_in: built-in function name as the first symbol in a listliteral: #t, #f, #...
Ini (“ini”)¶
title: title of a sectionvalue: value of a setting of any typestring: stringnumber: numberkeyword: boolean value keyword
Apache (“apache”, “apacheconf”)¶
keyword: keywordnumber: numbercomment: commentliteral: On and Offsqbracket: variables in rewrites “%{..}”cbracket: options in rewrites “[..]”tag: begin and end of a configuration section
Nginx (“nginx”, “nginxconf”)¶
title: directive titlestring: stringnumber: numbercomment: commentbuilt_in: built-in constantvariable: $-variableregexp: regexp
Diff (“diff”, “patch”)¶
header: file headerchunk: chunk header within a fileaddition: added linesdeletion: deleted lineschange: changed lines
DOS (“dos”, “bat”, “cmd”)¶
keyword: keywordflow: batch control keywordstream: DOS special files (“con”, “prn”, ...)winutils: some commands (see dos.js specifically)envvar: environment variables
Bash (“bash”, “sh”, “zsh”)¶
keyword: keywordstring: stringnumber: numbercomment: commentliteral: special literal: “true” and “false”variable: variableshebang: script interpreter header
Makefile (“makefile”, “mk”, “mak”)¶
keyword: keyword ”.PHONY” within the phony linestring: stringcomment: commentvariable: $(..) variabletitle: target titleconstant: constant within the initial definition
CMake (“cmake”, “cmake.in”)¶
keyword: keywordnumber: numberstring: stringcomment: commentenvvar: $-variableoperator: operator (LESS, STREQUAL, MATCHES, etc)
Nix (“nix”)¶
keyword: keywordbuilt_in: built-in constantnumber: numberstring: single and double quotessubst: antiquote ${}comment: commentvariable: function parameter name
NSIS (“nsis”)¶
symbol: directory constantsnumber: numberconstant: definitions, language-strings, compiler commandsvariable: $-variablestring: stringcomment: commentparams: parameterskeyword: keywordsliteral: keyword options
Axapta (“axapta”)¶
keyword: keywordnumber: numberstring: stringcomment: commentclass: class header from “class” till “{“title: class name inside a headerparams: everything in parentheses inside a class headerpreprocessor: preprocessor directive
Oracle Rules Language (“ruleslanguage”)¶
comment: commentstring: string constantnumber: numberkeyword: language keywordsbuilt_in: built-in functionsarray: array stem
1C (“1c”)¶
keyword: keywordnumber: numberdate: datestring: stringcomment: commentfunction: header of function or proceduretitle: function name inside a headerparams: everything in parentheses inside a function headerpreprocessor: preprocessor directive
x86 Assembly (“x86asm”)¶
keyword: instruction mnemonicliteral: register namepseudo: assembler’s pseudo instructionpreprocessor: macrobuilt_in: assembler’s keywordcomment: commentnumber: numberstring: stringlabel: jump labelargument: macro’s argument
AVR assembler (“avrasm”)¶
keyword: keywordbuilt_in: pre-defined registernumber: numberstring: stringcomment: commentlabel: labelpreprocessor: preprocessor directivelocalvars: substitution in .macro
VHDL (“vhdl”)¶
keyword: keywordnumber: numberstring: stringcomment: commentliteral: signal logical valuetypename: typenameattribute: signal attribute
Parser3 (“parser3”)¶
keyword: keywordnumber: numbercomment: commentvariable: variable starting with “$”preprocessor: preprocessor directivetitle: user-defined name starting with “@”
LiveCode Server (“livecodeserver”)¶
variable: variable starting with “g”, “t”, “p”, “s”, “$_”string: stringcomment: commentnumber: numbertitle: name of a command or a functionkeyword: keywordconstant: constantoperator: operatorbuilt_in: built_in functions and commandsfunction: header of a functioncommand: header of a commandpreprocessor: preprocessor marks: “<?”, “<?rev”, “<?lc”, “<?livecode” and ”?>”
TeX (“tex”)¶
comment: commentnumber: numbercommand: commandparameter: parameterformula: formulaspecial: special symbol
Haskell (“haskell”, “hs”)¶
comment: commentpragma: GHC pragmapreprocessor: CPP preprocessor directivekeyword: keywordnumber: numberstring: stringtitle: function or variable nametype: value, type or type class constructor name (i.e. capitalized)container: (..., ...) or {...; ...} list in declaration or recordmodule: module declarationimport: import declarationclass: type class or instance declarationtypedef: type declaration (type, newtype, data)default: default declarationinfix: infix declarationforeign: FFI declarationshebang: shebang line
Erlang (“erlang”, “erl”)¶
comment: commentstring: stringnumber: numberkeyword: keywordrecord_name: record access (#record_name)title: name of declaration functionvariable: variable (starts with capital letter or with _)pp:.keywords module’s attribute (-attribute)function_name: atom or atom:atom in case of function call
Elixir (“elixir”)¶
keyword: keywordstring: stringsubst: in-string substitution (#{...})comment: commentfunction: function header “def some_name(...):”class: defmodule and defrecord headerstitle: name of a function or a module inside a headersymbol: atomconstant: name of a modulenumber: numbervariable: variableregexp: regexp
Rust (“rust”, “rs”)¶
comment: commentstring: stringnumber: numberkeyword: keywordtitle: name of declarationpreprocessor: preprocessor directive
Matlab (“matlab”)¶
comment: commentstring: stringnumber: numberkeyword: keywordtitle: function namefunction: functionparam: params of functionmatrix: matrix in [ .. ]cell: cell in { .. }
Scilab (“scilab”, “sci”)¶
comment: commentstring: stringnumber: numberkeyword: keywordtitle: function namefunction: functionparam: params of functionmatrix: matrix in [ .. ]
R (“r”)¶
comment: commentstring: string constantnumber: numberkeyword: language keywords (function, if) plus “structural” functions (attach, require, setClass)literal: special literal: TRUE, FALSE, NULL, NA, etc.
OpenGL Shading Language (“glsl”)¶
comment: commentnumber: numberpreprocessor: preprocessor directivekeyword: keywordbuilt_in: GLSL built-in functions and variablesliteral: true false
AppleScript (“applescript”, “osascript”)¶
keyword: keywordcommand: core AppleScript commandconstant: AppleScript built in constanttype: AppleScript variable type (integer, etc.)property: Applescript built in property (length, etc.)number: numberstring: stringcomment: commenttitle: name of a handler
Vim Script (“vim”)¶
keyword: keywordbuilt_in: built-in functionsstring: string, commentnumber: numberfunction: function header “function Foo(...)”title: name of a functionparams: everything inside parentheses in a function’s headervariable: vim variables with different visibilities “g:foo, b:bar”
Brainfuck (“brainfuck”, “bf”)¶
title: Brainfuck while loop commandliteral: Brainfuck inc and dec commandscomment: commentstring: Brainfuck input and output commands
Mizar (“mizar”)¶
keyword: keywordcomment: comment
AutoHotkey (“autohotkey”)¶
keyword: keywordliteral: A (active window), true, false, NOT, AND, ORbuilt_in: built-in variablesstring: stringcomment: commentnumber: numbervar_expand: variable expansion (enclosed in percent sign)label: label, hotkey label, hotstring label
Monkey (“monkey”)¶
keyword: keywordbuilt_in: built-in functions, variables and types of variablesliteral: True, False, Null, And, Or, Shl, Shr, Modstring: stringcomment: commentnumber: numberfunction: header of a function, method and constructorclass: class headertitle: name of an alias, class, interface, function or method inside a headervariable: self and super keywordspreprocessor: import and preprocessorpi: Strict directive
FIX (“fix”)¶
attribute: attribute namestring: attribute value
Gherkin (“gherkin”)¶
keyword: keywordnumber: numbercomment: commentstring: string
Nimrod (“nimrod”)¶
decoratorpragmastringstring literaltypevariable typenumbernumeric literalcommentcomment
Swift (“swift”)¶
keyword: keywordcomment: commentnumber: numberstring: stringliteral: special literal: “true”, “false” and “nil”built_in: built-in Swift functionsfunc: header of a functionclass: class, protocol, enum, struct, or extension declarationtitle: name of a function or class (or protocol, etc)generics: generic type of a functionparams: parameters of a functiontype: a typepreprocessor: @attributes
G-Code (“gcode”, “nc”)¶
keyword: G words, looping constructs and conditional operatorscomment: commentnumber: numberbuilt_in: trigonometric and mathematical functionstitle: M words and variable registerspreprocessor: program number and ending characterlabel: block number
Q (“k”, “kdb”)¶
comment: commentstring: string constantnumber: numberkeyword: language keywordsconstant: 0/1btypename: built-in plain types (int, symbol etc.)built_in: built-in function