Skip to content

Pygments syntax highlighting is broken in modernist #10

@egonSchiele

Description

@egonSchiele

Example of breakage:
http://egonschiele.github.io/contracts.ruby

I think Pygments updated it's css tags, and the modernist stylesheet hasn't been updated to account for this. Here's the stylesheet used on the example page:

http://egonschiele.github.io/contracts.ruby/stylesheets/pygment_trac.css

Keywords are highlighted with this rule, for example:

.highlight .k { color: #66d9ef } /* Keyword */

But if you look at the html generated by Pygments, it looks like this:

<span class="pl-k">def</span>

All the tags have "pl-" prepended to them, and pygment_trac.css isn't written to work with that. So nothing is being highlighted. Related issue in my project:

egonSchiele/contracts.ruby#76

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