SyntaxHighlighter class
Methods
applyDocumentEdit (int editLine , int editStart , int oldEnd , String insertedText , String deletedText , String fullText )
→ void
buildHighlightedParagraph (int lineIndex , String lineText , ParagraphStyle paragraphStyle , double fontSize , String ? fontFamily , {double ? width , bool allowSynchronousHighlight = true , bool forcePlainText = false })
→ Paragraph
dispose ()
→ void
getCachedLineSpan (int lineIndex , String lineText )
→ TextSpan ?
Obtains a cached span only. Unlike getLineSpan , this never invokes
re_highlight, so it is safe to call from a render object's paint pass.
getLineSpan (int lineIndex , String lineText )
→ TextSpan ?
hasCachedLineSpan (int lineIndex , String lineText )
→ bool
Returns whether a highlighted span is already available without doing
syntax parsing. Rendering must use this on a scroll frame: parsing a
newly visible group of lines in paint blocks the UI isolate.
invalidateAll ()
→ void
invalidateLines (Set <int > lines )
→ void
invalidateRange (int startLine , int endLine )
→ void
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preHighlightLines (int startLine , int endLine , String getLineText (int ) )
→ Future <void >
toString ()
→ String
A string representation of this object.
inherited
updateSemanticTokens (List <LspSemanticToken > tokens , String getLineText (int ), int lineCount )
→ void