< Up a Level

Using code-input.js with Prism.js in projects which use modules or frameworks

Contributors: 2025 Oliver Geer

We plan to get documentation for this soon (contributions via a pull request are welcome!), but for now please use the corresponding article for highlight.js, and the demo vanilla code for code-input and Prism.js.

Bear in mind that the Prism.js library can be imported into ECMAScript modules as follows:

import Prism from "prismjs";