highlightjs-cshtml-razor
highlightjs-cshtml-razor copied to clipboard
Razor syntax not highlighting
I used the Static website or simple usage explained on the readme page.
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-cshtml-razor/dist/cshtml-razor.min.js"></script>
<script>
hljs.highlightAll();
</script>
Then how can I use it on an HTML page?
I tried the following:
<pre><code class="language-cshtml"> cshtml here </code></pre>
didn't work, then tried
<pre><code class="language-cshtml-razor"> cshtml here </code></pre>
no luck.
Thanks