I am trying to use google-code-prettify to highlight the syntax of some code, but the browser is rendering the HTML I am including in the tags. I have followed the Getting Started instructions
e.g.
<pre class="prettyprint">
<head>
<link href="stylesheet.css" rel="stylesheet">
</head>
<body>
<div id="divId">
<h1 class="h1Class">Hello world</h1>
</div>
</body>
</pre>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
Here, all I get is Hello world
. I have tried adding lang-html
after class="prettyprint
, didn't work.
What am I missing?