Skip to main content
Module

x/speed_highlight_js/src/index.js

🌈 Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection
Latest
import * as speedHighlightJs from "https://deno.land/x/speed_highlight_js@v1.2.6/src/index.js";

Variables

Call highlightElement on element with a css class starting with shj-lang-

Load a language and add it to the langs object

Functions

Highlight a DOM element by getting the new innerHTML with highlightText

Highlight a string passed as argument and return it

Find the tokens in the given code and call the given callback