Highlight::HLJS
Глобальный экземпляр (аналог module.exports = hljs)
Constants
PLAINTEXT_LANGUAGE = Mode.new.apply(name: "Plain text", disable_autodetect: true, contains: [] of Mode)
Constructors
default
Sourcenew
SourceInstance methods
_highlight(language_name : String, code : String, ignore_illegals : Bool, continuation : Mode | Nil) : HighlightResult
Sourceadd_plugin(plugin : Plugin)
Sourceclass_prefix
Sourcecomment(begin_p : Pattern | Nil, end_p : Pattern | Nil, mode_options : Mode | Nil = nil) : Mode
--- режимы для языков (аналог hljs.COMMENT / hljs.SHEBANG / ...) ---
configure(*, class_prefix : String | Nil = nil, languages : Array(String) | Nil = nil, ignore_unescaped_html : Bool | Nil = nil, throw_unescaped_html : Bool | Nil = nil)
Sourcedebug_mode
Sourceend_same_as_begin(mode : Mode) : Mode
Sourcelanguages_option
Sourcelist_languages
Sourcenew_instance
Sourceregex
Sourceremove_plugin(plugin : Plugin)
Sourcesafe_mode
Sourcesafe_mode?
Sourceversion_string
Source