CSS for code highlighter
I am using LiveWriter for creating my blog posts. I insert the code using its plugin. When I published the post the css is not applied on wordpress. Can you please let me know what is the workaround for embedding custom css in the blog post.
The blog I need help with is goldytech.wordpress.com.
For starters we need a link to the blog you are asking about to give you accurate help.
If the site you are talking about is hosted here at wordpress.com, do the code highlighting from within the editor here at wordpress.COM using the source code shortcode.
I tried to enclose the code within sourcecode tags. But it didn’t help.
I saw that there is code tag when you create new post in the html editor. But it does not support the attributes mentioned in your link.
I don’t know where I am going wrong.
What type of code are you trying to post?
And don’t use the code button on the editor. put in the sourcecode shortcodes and the paste the code in between them.
I followed the instructions mentioned in the article
Please click on this link which shows the edit mode https://skydrive.live.com/embed?cid=E84CFB62692563C4&resid=E84CFB62692563C4%21270&authkey=AE7gMheTjN01ytc
Further click on the link to see the preview mode , which will show that even after applying the shortcodes i am not getting the desired results.
Hope these images will make things clear for you.
You are using angle brackets around the shortcode, and you don’t do that. You use square brackets.
[sourcecode language="csharp"] ALL YOUR CODE HERE [/sourcecode]
And make sure and put the shortcodes and the code in while in the HTML tab. In theory it should not matter, but I’ve had it hiccup when I put it into the Visual tab, so I always put it into the HTML tab.
Yep it worked now.
Thanks for your all help.
You are welcome.
The topic ‘CSS for code highlighter’ is closed to new replies.