Sourcecode tag not syntax highlighted
-
Hi, I am new to WordPress.com, and am planning to write some blogs.
I tried to create a blog in which I need to add some source code there.when I created a new post, I add the following.
[sourcecode lauguage="css"]
#button {
font-weight: bold;
border: 2px solid #fff;
}
[/sourcecode]but unfortunately, after I published the post, It’s not syntax highlighted.
1 #button {
2 font-weight: bold;
3 border: 2px solid #fff;
4 }Is there anything I have done wrong? or it’s because the theme doesn’t support sourcecode tag?
Kind regards,
The blog I need help with is: (visible only to logged in users)
-
I find that if I add
before the [sourcecode lauguage="css"] it seems to help. Don't forget to close it at the end of your code.
[sourcecode]
<code>
I have inconsistent results when i use this. Sometimes the code is syntax highlighted and some times not. -
Notice that it changed my comment into code. I was trying for “
" before [sourcecode ...] -
-
Hi there,
Are you using this guide?
http://en.support.wordpress.com/code/posting-source-code/ -
Yes, I am. Like I said, my blog contains a lot of Powershell code. I made the effort to begin and end the code as is stated in the guide. It works, but, if you scroll down in my blog you will see that it stops working after about 10 posts. Is it my theme? or is there a limit of some sort?
Also, there are no samples showing how to use the parameters in the guide. That would be very helpfull.
-
Thanks mikef2691 and timethief for the reply.
I fixed this problem by starting a new post posted after I wrote some css code inside sourcecode tag.
Then I edited my blog by cleaning the tags such as
,, , etc. and then updated blog. After that it's Syntax highlighted. Thanks again for reply. I am gonna close this.
- The topic ‘Sourcecode tag not syntax highlighted’ is closed to new replies.