Highlight class
Constructors
Properties
Methods
-
addPlugin(
HLPlugin plugin) → void -
autoDetection(
String name) → bool - Determines if a given language has auto-detection enabled
-
debugMode(
) → void -
getLanguage(
String name) → Mode? -
highlight(
{required String code, required String language, bool ignoreIllegals = true}) → HighlightResult -
highlightAuto(
String code, [List< String> ? languageSubset]) → AutoHighlightResult - Highlighting with language detection. Accepts a string with the code to highlight. Returns an object with the following properties:
-
justTextHighlightResult(
String code) → HighlightResult - returns a valid highlight result, without actually doing any actual work, auto highlight starts with this and it's possible for small snippets that auto-detection may not find a better match
-
listLanguages(
) → List< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAliases(
dynamic aliasList, String languageName) → void -
registerLanguage(
String languageName, Mode lang) → void - Register a language grammar module
-
registerLanguages(
Map< String, Mode> languages) → void -
removePlugin(
HLPlugin plugin) → void -
safeMode(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterLanguage(
String languageName) → void - Remove a language grammar module
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited