mdEdit icon indicating copy to clipboard operation
mdEdit copied to clipboard

Use selected subset of Prism?

Open IngwiePhoenix opened this issue 8 years ago • 1 comments

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?

IngwiePhoenix avatar Feb 26 '16 16:02 IngwiePhoenix

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?

jbt avatar Mar 06 '16 10:03 jbt