Skip to content

CMD (Windows batch script) syntax highlighting and compatibility with the latest highlight.js #1352

@noarchwastaken

Description

@noarchwastaken

When I try to highlight a CMD script, the code block seems to be messed up:

image

image

Then I tried to use a newer version of highlight.js, specifically highlight.js 10.2.1. I put the new highlight.js and a corresponding css in the themes folder.

Now I can see the new highlight.js being put into the book directory;

image

image

but the style is still not applied to the code block.

I tried writing in html to directly call highlight.js, that failed as well.

image

image

According to this hightlight.js documentation, cmd is indeed a supported class for hightlight.js for Windows batch script.

What am I doing wrong here? Or if CMD is actually not supported, is there any plan to support it in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions