Props
PropertyTypeDefault ValueDescription
*languageFnLanguageFn (opens in a new tab)n/a

Function that syntax highlights the content (code) you provide, brought to you by highlight.js (opens in a new tab).

If your content is some plaintext, you can still use highlight.js' plaintext language function (opens in a new tab)

Example:

*themeCssstringn/a

CSS string containing styling of the highlighted class. Themes (opens in a new tab) examples: a11y-dark, a11y-light, github, googlecode and more.

Example:

*contentstringn/a

Content (code) to be highlighted and annotated. Below is a TypeScript example.

Example:

Source Code:
*annotationstringn/a

JSON object to specify what to annotate inside content. The key(s) will be used to search for placeholder and the value object contains the configuration.

Example:

Source Code: