CSS for code highlighter
-
Hi
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.Thanks
The blog I need help with is: (visible only to logged in users)
-
-
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.
-
@thesacredpath
I believe this may be the blog in question > http://goldytech.wordpress.com/ -
@thesacredpath
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.
Please help
-
-
And don’t use the code button on the editor. put in the sourcecode shortcodes and the paste the code in between them.
-
Hi
I followed the instructions mentioned in the articlePlease 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.
Best Regards
-
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.
-
-
- The topic ‘CSS for code highlighter’ is closed to new replies.