Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/docs/dep/prism.ts>highlightAll

A frugal web framework
Go to Latest
function highlightAll
import { highlightAll } from "https://deno.land/x/frugal@0.5.0/docs/dep/prism.ts";

This is the most high-level function in Prism’s API. It fetches all the elements that have a .language-xxxx class and then calls Prism.highlightElement on each one of them.

This is equivalent to Prism.highlightAllUnder(document, async, callback).

Parameters

optional
async: boolean
optional
callback: HighlightCallback