Methods
configure
- configure(options: any): void
fixMarkup
- fixMarkup(value: string): string
-
Parameters
Returns string
getLanguage
- getLanguage(name: string): any
highlight
- highlight(name: string, value: string, ignore_illegals?: boolean, continuation?: boolean): any
-
Parameters
-
name: string
-
value: string
-
Optional ignore_illegals: boolean
-
Optional continuation: boolean
Returns any
highlightAuto
- highlightAuto(value: string, languageSubset?: string[]): any
-
Parameters
-
value: string
-
Optional languageSubset: string[]
Returns any
highlightBlock
- highlightBlock(block: Node): void
initHighlightingOnLoad
- initHighlightingOnLoad(): void
listLanguages
- listLanguages(): string[]
registerLanguage
- registerLanguage(name: string, language: function): void
-
Parameters
-
name: string
-
language: function
Returns void