Each state can be used as the language in <code class="jush-state"> or jush.highlight(state, text). The highlighted code is wrapped in <span class="jush-state">, which can be styled by CSS. The first state of each group is the language itself.
| htm | HTML code |
|---|---|
| htm_com | HTML comment |
| ent | HTML entity |
| tag | Inside tag |
| tag_css | Inside style tag |
| tag_js | Inside script tag |
| att | Before = of tag's attribute |
| att_css | After = of style attribute |
| att_js | After = of on* attribute |
| att_http | After = of http-equiv attribute |
| att_quo | Inside quoted attribute value |
| att_apo | Inside apostrophed attribute value |
| att_val | Inside non-quoted attribute value |
| xml | XML code |
| xml_tag | Inside XML tag |
| xml_att | XML attribute |
| css | CSS code |
| css_at | After CSS at-rule |
| css_at2 | Inside {} of at-rule |
| css_pro | Property - inside {} of selector |
| css_val | After : following property |
| css_js | Inside CSS expression |
| clr | Color after # |
| quo | Inside quotes |
| apo | Inside apostrophes |
| com | Inside /* */ comment |
| com_nest | Inside nestable /* */ comment |
| one | One-line comment |
| esc | After \ |
| num | Number |
| js | JavaScript code, also inside {} and ${} |
| js_code | JavaScript statement |
| js_one | One-line comment |
| js_doc | JSDoc /** */ comment |
| js_reg | Regular expression |
| js_reg_bra | Inside [] of regular expression |
| js_bac | Template literal (inside backticks) |
| js_obj | Object literal |
| js_key | Key in object literal |
| js_val | Value in object literal |
| js_arr | Array literal |
| js_write | After write( or writeln( |
| js_write_code | Arguments of write() - strings are HTML |
| js_http | After .setRequestHeader( or .getResponseHeader( |
| js_http_code | Arguments of setRequestHeader() - strings are HTTP headers |
| json | JSON |
| json_obj | Object |
| json_key | Key in object |
| json_val | Value in object |
| json_arr | Array |
| php | PHP code (after <?php tag) |
| php2 | PHP code (after optional = of <?=) |
| php_echo | Code after echo, print or <?= - strings are in the surrounding language |
| php_php | Code inside eval() or functions with callback parameter |
| php_sql | Code inside mysql_query(), mysqli_query() and similar |
| php_sqlite | Code inside sqlite_query() and similar |
| php_pgsql | Code inside pg_query() and similar |
| php_mssql | Code inside sqlsrv_query() and similar |
| php_oracle | Code inside oci_parse() |
| php_phpini | Code inside ini_set() or ini_get() |
| php_http | Code inside header() |
| php_mail | Code inside mail() |
| php_new | Class name after new, instanceof, extends, class, implements or interface |
| php_met | Class name before :: |
| php_fun | Name after function, -> or :: |
| php_var | Variable (after $) |
| php_quo_var | {$} or ${} variable inside string |
| php_quo | Inside quotes |
| php_apo | Inside apostrophes |
| php_bac | Inside backticks |
| php_eot | Beginning of heredoc or nowdoc (after <<<) |
| php_eot2 | Inside heredoc or nowdoc |
| php_one | PHP one-line comment |
| php_doc | PHPDoc /** */ comment |
| php_com | Inside /* */ comment |
| php_halt | After __halt_compiler() |
| php_halt2 | Anything after ; or ?> following __halt_compiler() |
| phpini | php.ini |
| cnf | Apache configuration |
| quo_one | Inside quotes ending at the end of line |
| cnf_http | After Header, RequestHeader or CacheIgnoreHeaders |
| cnf_php | After PHPIniDir |
| cnf_phpini | After php_value, php_flag, php_admin_value or php_admin_flag |
| cnf_phpini_val | Value of php.ini directive |
| http | HTTP headers |
| E-mail headers | |
| sql | MySQL and MariaDB code |
| sql_code | Statement other than SET |
| sql_sqlset | After SET |
| sqlset_val | Value after = of SET |
| sqlset | System variable |
| sqlstatus | Status variable |
| com_code | Beginning or end of executable /*! */ comment |
| sql_apo | Inside SQL apostrophes |
| sql_quo | Inside SQL quotes |
| sql_var | Inside SQL variable |
| bac | Inside backticks |
| sqlite | SQLite |
| sqlite_sqliteset | After PRAGMA |
| sqliteset | Pragma |
| sqlitestatus | Compile-time option |
| sqlite_apo | Inside SQL apostrophes without backslash escapes |
| sqlite_quo | Inside SQL quotes without backslash escapes |
| bra | Inside square brackets |
| pgsql | PostgreSQL |
| pgsql_code | Statement other than SET, SHOW and CREATE EXTENSION |
| pgsql_pgsqlset | After SET or SHOW |
| pgsqlset | Configuration parameter |
| pgsql_pgsqlext | After CREATE, ALTER or DROP EXTENSION |
| pgsqlext | Extension name |
| pgsql_eot | Beginning of dollar-quoted string (after $) |
| pgsql_eot2 | Inside dollar-quoted string or function body |
| mssql | MS SQL |
| mssql_bra | Inside square brackets |
| oracle | Oracle |
| clickhouse | ClickHouse |
| firebird | Firebird |
| simpledb | SimpleDB |
| redis | Redis commands |
| elastic | Elasticsearch queries (path: JSON) |
| igdb | IGDB API queries |
| txt | Plain text |