UNPKG

ngx-highlightjs

Version:

Instant code highlighting, auto-detect language, super easy to use.

42 lines (41 loc) 1.18 kB
import { Observable } from 'rxjs'; import { HighlightLibrary, HighlightOptions } from './highlight.model'; import * as i0 from "@angular/core"; export declare class HighlightLoader { private doc; private _options; private readonly _ready; readonly ready: Observable<HighlightLibrary>; private _themeLinkElement; constructor(doc: any, platformId: object, _options: HighlightOptions); /** * Lazy-Load highlight.js library */ private _loadLibrary; /** * Lazy-load highlight.js languages */ private _loadLanguages; /** * Import highlight.js core library */ private loadCoreLibrary; /** * Import highlight.js library with all languages */ private loadFullLibrary; /** * Import line numbers library */ private loadLineNumbers; /** * Reload theme styles */ setTheme(path: string): void; /** * Load theme */ private loadTheme; static ɵfac: i0.ɵɵFactoryDeclaration<HighlightLoader, [null, null, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<HighlightLoader>; }