How to add a code snippet to a page with syntax highlighting
You can add a code snippet to a page using the [ code] short-code.
You can either enclose the code snippet between [ code] and [ /code]
OR
Add the code in a custom field and then add the custom field name to the short-code as follows [ code custom='blah'][ /code]
Categories: Syntax Highlighting Tags: code, code snippet, custom, enclose, Syntax
How to prevent wordpress from messing up my code snippets
Everyone of you who has tried to add a code snippet to a wordpress post or page will know how frustrating it is to set it up with wordpress auto formatting the snippet and messing up all the formatting.
Those of you who have experienced this will be interested in the code syntax highlighting feature of Wp-Insert.
Check these pages to know how to tackle the problem :
http://www.wp-insert.blogolb.net/tutorials/syntax-highlighting/
Categories: Syntax Highlighting Tags: code snippets, Post, problem, snippet, Syntax



