html - Why isn't Google Code Prettify working on css? -
i'm using prettify.js blog posts. it's handling html, python, , js fine, missing css.
my html is:
<pre> <code class="prettyprint lang-css">` .my-boxclass { display: inline-block; position: relative; cursor: help; border-bottom: 1px dotted grey; } </code> </pre>
and i'm importing prettify. here's jsfiddle of i'm doing (and it's not syntax highlighting jsfiddle correctly either) https://jsfiddle.net/kfdqljm1/2/
you need load css language handler. try adding ?lang=css
after run_prettify.js
.
Comments
Post a Comment