Return the names of the currently registered syntaxes.
Return a syntactically highlighted version of the provided text using the specified syntax. The returned text will include appropriate color styling. An optional ColorScheme can be provided.
the text to highlight.
the syntax to use.
OptionalcolorScheme: ColorScheme
the color scheme to use.
Register a new syntax.
The recommended way to define a new language syntax is to follow the instructions here:
There is a list of already defined languages available for import here:
https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
the name used to refer to the syntax.
the definition for the syntax conforming to the Highlight JS language definition syntax.
Service providing syntax based color highlighting of text for the CLI using highlight.js.