Tuesday, December 08, 2009

Code Syntax Highlighting in your Blog Posts

Do you want C++ highlighted code in your blog posts? If you use Kate, you can export the HTML-formatted version of your source code, if you have enabled the HTML export extension. Use File>Save as HTML. Open the resulting file in Kate and replace the spaces with   so the spaces are well defined in your post.

Copy the code snippet form Kate into the raw HTML editor of your blog, and there is it. For examples, check below.

No comments:

Post a Comment

Is your comment or question:

1. Constructive?
2. Interesting?
3. Short?

If not, please post it in your own blog.