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

Switch to Rouge for syntax highlighting and add dark syntax-highlighting theme #500

Merged
merged 4 commits into from
Dec 15, 2020

Conversation

RobinDaugherty
Copy link
Member

Rouge seems to be more actively developed, and most importantly its CSS class names are compatible with Pygments, which means there are more up-to-date themes available for it.

I found a good source (a gist) for Solarized themes that included the Pygments variables, and I built them as SCSS using variables. In order to support dark theme when enabled by the user's (browser) preferences, the dark theme has to override the light theme's directives.

Screen Shot 2020-12-14 at 3 52 23 PM
Screen Shot 2020-12-14 at 3 52 32 PM

@coveralls

This comment has been minimized.

@coveralls
Copy link

coveralls commented Dec 15, 2020

Pull Request Test Coverage Report for Build 423536419

  • 20 of 20 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 96.811%

Totals Coverage Status
Change from base Build 419007021: 0.01%
Covered Lines: 516
Relevant Lines: 533

💛 - Coveralls

@RobinDaugherty RobinDaugherty merged commit 3cb344a into master Dec 15, 2020
@RobinDaugherty RobinDaugherty deleted the feature/dark-syntax-highlighing-theme branch December 15, 2020 15:46
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

Successfully merging this pull request may close these issues.

2 participants