FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.88k stars 153 forks source link

Need python support #210

Closed AishwaryaMurade closed 1 year ago

AishwaryaMurade commented 1 year ago

It does not support python language

cedarbaum commented 1 year ago

You can manually add it from the main prismjs package (this is detailed here: https://github.com/FormidableLabs/prism-react-renderer#custom-language-support):

npm install prismjs

and then:

(typeof global !== "undefined" ? global : window).Prism = Prism
require("prismjs/components/prism-python")