highlightjs-cshtml-razor icon indicating copy to clipboard operation
highlightjs-cshtml-razor copied to clipboard

Razor syntax not highlighting

Open dush-a opened this issue 2 years ago • 1 comments

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

dush-a avatar Feb 16 '23 09:02 dush-a