NgDocHighlighterService
Highlights code with Shiki. initializes it before the application renders.
DeclarationTypeScript
@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. | ||||||
Signature Returns void | |||||||
No members match.