Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Install javascript library

  • #3318
    Avatar photo[anonymous]

    Hi. I want to know if it is possible to add an external JavaScript library. I have added highlight.js in the header but it doesn’t work. Am I doing something wrong or are the external libraries not working?

    I’d like to buy your latest template for my blog, but I need the code to look better (similar to VSCode).

    #3322
    Avatar photoBob

    It is, have a look at the implementation of the prism library https://getpublii.com/docs/highlight-your-code-syntax-with-prism-js.html

    #3324
    Avatar photo[anonymous]

    Thank you very much Bob! Sorry for not consulting the documentation first.