Prismjs and Quasar

  • I’m making some personal notes for Quasar-Framework and I’d like to display some javascript code using Prismjs.

    I placed the prism.js and prism.css files in my “statics” folder and I’m referencing them in the <head> section of index.html:

    <!-- Prismjs -->
        <script src="statics/scripts/prism.js"></script>
        <link rel="stylesheet" href="statics/styles/prism.css">

    I’m not getting any errors, but the syntax is not being styled correctly.

    What do I need to do to get Prismjs to work with Quasar?

    Thanks for your help 🙂

  • did you ever figure this out? I’m looking at the same thing.

Log in to reply