Skip to content

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

Merged
RobinDaugherty merged 4 commits intomasterfrom
feature/dark-syntax-highlighing-theme
Dec 15, 2020
Merged

Switch to Rouge for syntax highlighting and add dark syntax-highlighting theme#500
RobinDaugherty merged 4 commits intomasterfrom
feature/dark-syntax-highlighing-theme

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