Displaying code in a WordPress blog

Does anybody know of a neat way to present code in a hosted WordPress blog ?

It’s quite desperate when you can’t display code properly on a coder’s blog.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Comments

  • Jani Hartikainen  On October 18, 2010 at 3:56 pm

    I’ve been using WP-syntax on mine with great results. It uses GeSHi to highlight syntax, so it supports a ton of languages too

  • markw1970  On October 18, 2010 at 4:06 pm

    Thanks, Jani.
    Is that available to me using a hosted WordPress blog ? ie. at wordpress.com
    I confess I’m not that clued up with WP and blogging :(

  • Jani Hartikainen  On October 18, 2010 at 7:23 pm

    Oh, I have no idea about wordpress.com hosted stuff… Perhaps you could use GitHub’s Gist? I think you can create a gist (basically a pastebin thing in case you’re not familiar) and embed it on your page – Seen it on a few pages, uses JavaScript so it should work if you just paste it in your post when writing it. Downside is that it makes code samples not show at all in the RSS feed.

  • 3d games online  On October 21, 2010 at 7:20 pm

    is it selfhosted blog? or a sub blog from wordpress.com? if its a self hosted one you can simply add a div to the page when your creating one and add some styles to it. hope it helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: