Skip to content

Razor syntax not highlighting #21

Description

@dush-a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions