Highlight class

Constructors

Highlight()

Properties

APOS_STRING_MODE → Mode
no setter
BACKSLASH_ESCAPE → Mode
no setter
BINARY_NUMBER_MODE → Mode
no setter
C_BLOCK_COMMENT_MODE → Mode
no setter
C_LINE_COMMENT_MODE → Mode
no setter
C_NUMBER_MODE → Mode
no setter
HASH_COMMENT_MODE → Mode
no setter
hashCode → int
The hash code for this object.
no setterinherited
MATCH_NOTHING_RE → Mode
no setter
METHOD_GUARD → Mode
no setter
NUMBER_MODE → Mode
no setter
PHRASAL_WORDS_MODE → Mode
no setter
QUOTE_STRING_MODE → Mode
no setter
regexHelpers → Map<String, dynamic>
no setter
REGEXP_MODE → Mode
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
TITLE_MODE → Mode
no setter
UNDERSCORE_TITLE_MODE → Mode
no setter

Methods

autoDetection(String name) → bool
COMMENT(dynamic begin, dynamic end, [Mode? modeOptions]) → Mode
END_SAME_AS_BEGIN(Mode mode) → Mode
getLanguage(String name) → Mode?
hasLanguage(String name) → bool
highlight(String code, {required String language, HighlightContinuation? continuation}) → HighlightResult
Highlights a source chunk, optionally resuming an earlier checkpoint.
highlightAuto(String code, {List<String>? languageSubset}) → HighlightResult
listLanguages() → List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAliases(List<String> aliasList, {required String languageName}) → void
registerLanguage(String name, LanguageDefinitionFn definition) → void
SHEBANG([Mode? opts]) → Mode
toString() → String
A string representation of this object.
inherited
unregisterLanguage(String name) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

BINARY_NUMBER_RE → const String
C_NUMBER_RE → const String
IDENT_RE → const String
NUMBER_RE → const String
RE_STARTERS_RE → const String
UNDERSCORE_IDENT_RE → const String