I'm following the basic Heroku tutorial using Python (Django) to stand up a web page. I eventually want to blog, and to include code snippets, so I wanted to include highlight.js
to make the code look prettier.
However, I cannot figure out how or where to include the <link ... "style/...css" />
and/or <script ...highlight.min.js" ></script>
to get things to render - I end up with plain code-text even though my <pre><code>...</code></pre>
tags have hljs
class appended, and I can see that the stylesheet and script are linked correctly.
Instead of trying to copy and paste 16 different files with 40 lines each, I think it's easiest to just link to my testing page. page which should be using highlight js but isn't.
Note also that I'm trying to use a highlight.js
stylesheet called androidstudio
; the giveaway that it's working is that the code background will be gray/black, and some of the words will be bold and different colors (ie the entire point of highlight js).
This question is different from this local static file question because I'm trying to use //cdnjs
files, that is, publicly-hosted js
and css
files.