Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use selected subset of Prism? #18

Open
IngwiePhoenix opened this issue Feb 26, 2016 · 1 comment
Open

Use selected subset of Prism? #18

IngwiePhoenix opened this issue Feb 26, 2016 · 1 comment

Comments

@IngwiePhoenix
Copy link

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?

@jbt
Copy link
Owner

jbt commented Mar 6, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants