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

Add options for different themes for prismjs code snippets #4

Open
ezkemboi opened this issue Jul 12, 2019 · 0 comments
Open

Add options for different themes for prismjs code snippets #4

ezkemboi opened this issue Jul 12, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ezkemboi
Copy link
Member

  • Add an option that the user can choose themes when checking code.
  • The default should be require('../node_modules/prismjs/themes/prism.css')
  • You can add different themes in a object and user can choose from them e.g
      // Can add this function to main.js
      const chooseTheme = {
                default: require('../node_modules/prismjs/themes/prism.css'),
                okadia: require('../node_modules/prismjs/themes/prism-okaidia.css')
       }
  • See an example screenshot of the firebase code snippet Link

Screen Shot 2019-07-12 at 21 35 26

@ezkemboi ezkemboi added help wanted Extra attention is needed enhancement New feature or request labels Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant