Answer the question
In order to leave comments, you need to log in
Why isn't highlight.js working?
Hello, I installed highlight.js
<head>
<link rel="stylesheet" href="styles/default.css" type="text/css">
<script src="jQuey.js"></script>
<script src="highlight.pack.js"></script>
</head>
<body>
<pre>
<code class="lang-html html">
<span>Hello World</span>
Answer the question
In order to leave comments, you need to log in
The library does not escape anything.
There are examples in the library's github repository. Modify them.
<script>hljs.initHighlightingOnLoad();</script>
From an example. You don't see that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question