Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aran-Fey opened this issue Oct 27, 2019 · 0 comments
Open

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

Aran-Fey opened this issue Oct 27, 2019 · 0 comments

Comments

@Aran-Fey
Copy link

Aran-Fey commented Oct 27, 2019

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant