NgDocHighlighterService
Highlights code with Shiki. starts its initialization where it is provided (the application, or the route that holds the documentation), and the server render waits for it. Shiki is loaded on demand: initialize() imports it.
@Service ()
export class NgDocHighlighterService implements OnDestroy { … }Members
Properties2 | |||||||
ready: | Whether | ||||||
theme: | — | ||||||
Methods3 | |||||||
(…): string | Returns the code as highlighted HTML, or an empty string before | ||||||
Signature Parameters
Returns string | |||||||
(…): Promise<void> | Loads Shiki with the built-in themes ( | ||||||
Signature Parameters
Returns Promise<void> | |||||||
(): void | Disposes the highlighter this service created for custom themes or languages. | ||||||
Signature Returns void | |||||||