@speed-highlight/core
Version:
🌈 Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection
9 lines • 409 B
TypeScript
export function highlightText(src: string, lang: ShjLanguage): Promise<string>;
export function printHighlight(src: string, lang: ShjLanguage): Promise<any>;
export function setTheme(name: ShjTerminalTheme): Promise<any>;
export type ShjLanguage = import("./index.js").ShjLanguage;
/**
* Languages supported
*/
export type ShjTerminalTheme = ("default" | "atom-dark");
//# sourceMappingURL=terminal.d.ts.map