Using the syntaxhighlighter with the Pyrmont theme

I had a problem with displaying correctly formatted code with this theme. The syntaxhighlighter decorates each token with <code> tag. It works fine unless something else defines style for code also. The theme does that. As the plugin is my primary formatter for the code, I just removed the style for the code tag from style.css file in pyrmont-v2 directory.
The removed code looks like that now:

 /*div#main div.post div.entry code{*/
 /*font-family: "Courier New", mono;*/
 /*background-color: #181818;*/
 /*border-left: 1px solid #2a2e2f;*/
 /*color: #197b30;*/
 /*padding: 5px 10px;*/
 /*display: block;*/
 /*}*/

Now any wp plugin based on syntaxhighlighter should work fine.

Posted in Uncategorized
2 Comments » for Using the syntaxhighlighter with the Pyrmont theme
  1. modpr0be says:

    Thank You..
    It really helpful..I already frustrated for 5 hours then I came to this blog and get satisfied.
    The only thing that I should fix is the wrap text, it became a double lines in main source page :( do you have any idea with this?

    Thank’s a lot.

  2. bibix says:

    There used to be an option to wrap/unwrap lines in syntax highlighter v2, but now it’s gone in version 3. Maybe playing a little bit with this can help you: http://bitbucket.org/alexg/syntaxhighlighter/issue/182/version-3-making-code-wrap.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>