Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HighlightJS

Hierarchy

  • HighlightJS

Index

Methods

configure

  • configure(options: any): void

fixMarkup

  • fixMarkup(value: string): string
  • Parameters

    • value: string

    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

initHighlighting

  • initHighlighting(): void

initHighlightingOnLoad

  • initHighlightingOnLoad(): void

listLanguages

  • listLanguages(): string[]

registerLanguage

  • registerLanguage(name: string, language: function): void
  • Parameters

    • name: string
    • language: function
        • (hljs?: any): any
        • Parameters

          • Optional hljs: any

          Returns any

    Returns void