Forums

[resolved] How to style the links tag (9 posts)

  1. DrinkChoc
    Member
    Posted 1 year ago #

    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!

  2. 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.

  3. JarretC
    Member
    Posted 1 year ago #

    +1 for the SyntaxHighlighter plugin, works great!

  4. DrinkChoc
    Member
    Posted 1 year ago #

    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...?

  5. JarretC
    Member
    Posted 1 year ago #

    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.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  7. DrinkChoc
    Member
    Posted 1 year ago #

    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?

  8. JarretC
    Member
    Posted 1 year ago #

    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

  9. DrinkChoc
    Member
    Posted 1 year ago #

    I've uninstalled them.

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

    Mush easier and actually works.

Topic Closed

This topic has been closed to new replies.

About this Topic