Dark theme for source code?

  • Author
    Posts
  • #597087

    geremycondra
    Member

    Hey all,

    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?

    Thanks!

    The blog I need help with is geremycondra.net.

    #597308

    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.

    #597310

    geremycondra
    Member

    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?

    #597317

    Sorry, but no it is not.

    #597320

    geremycondra
    Member

    Hmm. That’s deeply annoying. Might have been a short trip into WP-land.

    Anyways, thanks for your help.

    #597321

    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.

    #597325

    geremycondra
    Member

    Hmm ok. Sorry for the stupid question, but how do I do that?

    #597328

    Sorry, I forgot to include a link. http://en.support.wordpress.com/contact/ . I think support is closed right now, but on the contact page it will tell when they are going to be back from their walkabout.

The topic ‘Dark theme for source code?’ is closed to new replies.