mdEdit
mdEdit copied to clipboard
Use selected subset of Prism?
I want to use this widget to provide my users with a neat editor to use for their content. Unfortunately when I saw Prism being 133kb in size (prism-all.js), i gulped pretty hard. Because that is really big.
My environment uses WebPack, so I can utilize CommonJS and the like. What is the best way to only use selected languages?
Hey, sorry for the slow reply here. I'm not really sure on the best way of using Prism with various bundlers etc. because it's not very well packaged for you to install just select components.
It is, however, completely modular and you can build your own subset on http://prismjs.com/download.html - just so long as you include the markup
language, you should be able to pick and choose whatever other languages you like.
Does that help at all?