Open xt0rted opened 5 years ago
Adding another syntax system (the 4th one now) will be a lot of work unless we find a way to abstract them further (and possibly generate all the themes from code). Maybe just go with a invert+hue-rotate filter on any element with the .hljs
class as a start.
None of the highlight.js themes should require manual adjustment so it should be a straight copy into this style. I need to setup something to download these same themes for my vscode extension so maybe what I come up with for that could also be used as a starting point for this.
What about trying:
@-moz-document domain("help.github.com") {
code.hljs {
filter: invert(30%) brightness(1.5);
}
}
@xt0rted any advance on this?
I'm not sure when this started but highlight.js is being used on the help site now for syntax highlighting. This looks to be happening on the server side because there's no JS for it running in the browser.
Do we want to add highlight.js themes for
help.github.com
or just revert the colors back to their defaults for the time being?For now I'm reverting the background & color of these code blocks with the following:
^ I take that back, I just copied the monokai theme from here and stuck it in a custom style for the time being.