Skip to content

Add options for different themes for prismjs code snippets #4

@ezkemboi

Description

@ezkemboi
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions