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

how to change the prism theme and what plugins can i use #18

Open
SteveSuv opened this issue Feb 14, 2020 · 2 comments
Open

how to change the prism theme and what plugins can i use #18

SteveSuv opened this issue Feb 14, 2020 · 2 comments

Comments

@SteveSuv
Copy link

No description provided.

@xLink
Copy link

xLink commented Feb 20, 2020

If you look under node_modules/prismjs in your project, the prismjs already bundles everything you need with it.

So you can just import what you want...

import 'prismjs'
import 'prismjs/components/prism-json'
import 'prismjs/components/prism-bash'
import 'prismjs/plugins/toolbar/prism-toolbar.css'
import 'prismjs/plugins/toolbar/prism-toolbar'
import 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'
import 'prismjs/themes/prism-okaidia.css'

@jd-solanki
Copy link

Hi, @xLink

Did you managed to use https://prismjs.com/plugins/file-highlight/

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

3 participants