NoOpCodeHighlighter

Functions

Link copied to clipboard
open override fun highlight(code: String, mimeType: MimeType): Flow<AnnotatedString>

Highlights code according to rules for the language specified by mimeType, and returns flow of styled strings. For basic highlighters with rigid color schemes it is enough to return a flow of one element: