Skip to content

Use class-based syntax highlighting instead of inline CSS #178

@Aran-Fey

Description

@Aran-Fey

Syntax highlighting in code blocks is currently done with inline styles like this:

<span style="color: #204a87; font-weight: bold">def</span>

This makes it impossible to customize syntax highlighting colors, which is a problem for dark theme users - code is unreadable on a dark background and impossible to restyle.

A far better solution would be class-based CSS rules like

<span class="syntax-darkblue">def</span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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