Welcome! To use this support forum, please Login or Join Today!

   

sourcecode not showing as expected

{name}
Rank

Total Posts: 2

Joined 2011-09-11

PM

 

Could this be a theme issue? I’m trying to post sourcecode such as:

[sourcecode language=“css”]

ScrollBar
{
up-skin-arrow:ClassReference(null);
down-skin-arrow:ClassReference(null);
}

[/sourcecode]

and it’s not appearing as expected. I’m following these instructions: http://en.support.wordpress.com/code/posting-source-code/

Any help apprecaited. Thanks.

Image Attachments

Capture.JPG

Click thumbnail to see full-size image

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

I believe that shortcode is for wordpress.com users, not the open source wordpress.org package.

You should just be able to put your code in pre tags:

<pre>

ScrollBar
{
up-skin-arrow:ClassReference(null);
down-skin-arrow:ClassReference(null);
}
</pre>
{name}
Rank

Total Posts: 2

Joined 2011-09-11

PM

 

Yeah, looks like you’re right. pre doesn’t really cut it, so I went with http://wordpress.org/extend/plugins/better-wordpress-syntax-based-on-geshi/changelog/ in the end. Thanks, Casey smile