Dark theme for source code?
I’m starting up a blog related to my work as a developer and researcher and would like to be able to put up short snippets of code so that readers can follow along. My problem is that the default [sourcecode] shortcode causes code to be displayed as black text on a light background, where my theme is light on dark. To me, the latter is much more readable- is there a way to get that behavior out of it?
The blog I need help with is geremycondra.net.
From a usability standpoint (readability) light text on a dark background is not recommended. Just sayin’
You would have to have the CSS upgrade and some CSS experience to do this.
To each their own. Having read text off of white-on-black terminals for many years I find it less tiring than staring into a light bulb for hours on end.
Given that for the moment at least I’m my own most active reader, I’d like to fix this, and preferably without rewriting WP’s syntax highlighting CSS. I take it that isn’t an option?
Sorry, but no it is not.
Hmm. That’s deeply annoying. Might have been a short trip into WP-land.
Anyways, thanks for your help.
You might run it past the theme team and see if they would come up with the CSS for a dark theme. They might put it on their agenda, and then perhaps they will not, but it is worth asking about.
Hmm ok. Sorry for the stupid question, but how do I do that?
The topic ‘Dark theme for source code?’ is closed to new replies.