• Resolved DrinkChoc

    (@drinkchoc)


    Hello,

    I’m currently writing a tutorial for my blog and I was wondering how to style the code inbetween the code tags so it looks better when formatted. I’ve searched my files but couldn’t find anything.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m sure there’s a way to do it in CSS, but I find that really cool looking code examples benefit from a syntax highlighter plugin.

    http://wordpress.org/extend/plugins/search.php?q=syntax+highlighter

    My favorite is this one, but you may prefer one of the others.

    Jarret

    (@jarretc)

    +1 for the SyntaxHighlighter plugin, works great!

    Thread Starter DrinkChoc

    (@drinkchoc)

    What am I doing wrong? I tried both plugins you linked to and both of them don’t work. What do I have to do to get these to work?

    Isn’t there just a way to style your code or something…?

    Jarret

    (@jarretc)

    How are you using the code tags on your blog?

    You could most likely style the CSS in some way if you’re looking for something simple and not too extravagant. But in order to point you in the right direction I need to know how you are posting the code in the first place.

    esmi

    (@esmi)

    Personally I just use CSS. Try styling on code, pre and pre code.

    Thread Starter DrinkChoc

    (@drinkchoc)

    Well how do I actually use the plugin? There’s no instructions so I don’t know what I’m meant to do?

    The tags are in a different font and that’s it, so isn;t there a way to change it’s CSS without needing plugins?

    Jarret

    (@jarretc)

    If you look at the ‘Installation’ tab on the plugin page it shows you how to display the code.

    Example:

    [php]Your code goes here.[/php]

    That will display your code with PHP highlighting

    Thread Starter DrinkChoc

    (@drinkchoc)

    I’ve uninstalled them.

    I’ve just used the pre tags and styled it myself.

    Mush easier and actually works.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to style the links tag’ is closed to new replies.