Need help? Check out our Support site, then

CSS for code highlighter

  1. 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.


    The blog I need help with is

  2. For starters we need a link to the blog you are asking about to give you accurate help.

  3. If the site you are talking about is hosted here at, do the code highlighting from within the editor here at wordpress.COM using the source code shortcode.

  4. @thesacredpath
    I believe this may be the blog in question >

  5. @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

  6. What type of code are you trying to post?

  7. And don't use the code button on the editor. put in the sourcecode shortcodes and the paste the code in between them.

  8. Hi
    I followed the instructions mentioned in the article

    Please click on this link which shows the edit mode

    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

  9. You are using angle brackets around the shortcode, and you don't do that. You use square brackets.

    [sourcecode language="csharp"]
  10. 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.

  11. Yep it worked now.
    Thanks for your all help.

  12. You are welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic