Skip to content

no highlighting inside quotes of eg class=".*" inside html tag #122

@joshinils

Description

@joshinils

Probably also upstream related like #84.

Image

The text in the above image:

<div  style="background:{{aColorTemplate| without highlighting}}"> div content </div>
<div> style="background:{{aColorTemplate| with    highlighting}}"> div content </div>

Oh, hey, the markdown syntax highlighter on GitHub also doesn't work with this exact example, huh.

But if I try it on de.Wikipedia with theirs:
Image

I'd looked into what/where the style comes from before, the SyntaxHighlight extension uses pygments, and the lexer for wikitext seems to be defined here: https://github.com/pygments/pygments/blob/28ec10c5e154ee27201997feb573a0b065f74082/pygments/lexers/markup.py#L888
Just thought I'd put that here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions