Module hljs

Index

Variables

Interfaces

Functions

Variables

APOS_STRING_MODE: IMode

BACKSLASH_ESCAPE: IMode

BINARY_NUMBER_MODE: IMode

BINARY_NUMBER_RE: string

C_BLOCK_COMMENT_MODE: IMode

C_LINE_COMMENT_MODE: IMode

C_NUMBER_MODE: IMode

C_NUMBER_RE: string

HASH_COMMENT_MODE: IMode

IDENT_RE: string

LANGUAGES: { [name: string]: any; }

(): any

Returns

any

NUMBER_MODE: IMode

NUMBER_RE: string

QUOTE_STRING_MODE: IMode

RE_STARTERS_RE: string

UNDERSCORE_IDENT_RE: string

tabReplace: string

Functions

blockLanguage(block: Node): string

Parameters

  • block: Node

Returns

string

blockText(block: Node, ignoreNewLines: boolean): string

Parameters

  • block: Node
  • ignoreNewLines: boolean

Returns

string

fixMarkup(value: string, tabReplace: boolean, useBR: boolean): string

Parameters

  • value: string
  • tabReplace: boolean
  • useBR: boolean

Returns

string

highlight(language_name: string, value: string): IHighlightResult

Parameters

  • language_name: string
  • value: string

Returns

IHighlightResult

highlightAuto(text: string): IHighlightResult

Parameters

  • text: string

Returns

IHighlightResult

highlightBlock(block: Node, tabReplace?: boolean, useBR?: boolean)

Parameters

  • block: Node
  • tabReplace?: boolean optional
  • useBR?: boolean optional

initHighlighting()

initHighlightingOnLoad()