Adding additional languges to @mantine/prism? #923
-
Hello, is it possible to add additional languages to @mantine/prism for code syntax highlighting? As the package is using import Prism from "prismjs";
(typeof global !== "undefined" ? global : window).Prism = Prism;
import "prismjs/components/prism-nginx"; My code block that is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems like this have already been answered by @rtivital on Discord. For future readers, here is the example code he provided. https://codesandbox.io/embed/stupefied-hellman-lfudm?file=/src/App.tsx&codemirror=1 |
Beta Was this translation helpful? Give feedback.
Seems like this have already been answered by @rtivital on Discord.
For future readers, here is the example code he provided. https://codesandbox.io/embed/stupefied-hellman-lfudm?file=/src/App.tsx&codemirror=1