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

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -