CSS for programming/console

  • Author
    Posts
  • #1469124

    I have seen several blogs (for instance http://www.rackaid.com/resources/how-to-harden-or-secure-ssh-for-improved-security/) that have css styled for console or programming examples. Unfortunately, it is quite hard to search for css for “code” or “programming” as it pulls up enormous amounts of unrelated information. For the theme Twenty Twelve, is there any included class definitions that would allow me to easily set up a “pre” block as seen in the example? If not, does anyone have example css to look at for this sort of example?

    The blog I need help with is aeriagloris.net.

    #1469345

    Hi @aeriaglorisse, you can use the “code” shortcode to post syntax-highlighted code:

    [code language="css"]
    your code here
    [/code]

    The following languages are supported:

    actionscript3, bash, clojure, coldfusion, cpp, csharp, css, delphi, erlang, fsharp, diff, groovy, html, javascript, java, javafx, matlab, objc, perl, php, text, powershell, python, r, ruby, scala, sql, vb and xml

    For more information, take a look at http://en.support.wordpress.com/code/posting-source-code/

    #1469354

    Thank you that was what I was looking for.

The topic ‘CSS for programming/console’ is closed to new replies.