Posts Tagged ‘Syntax’

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]

Be the first to comment - What do you think?  Posted by smartlogix - May 30, 2010 at 2:15 pm

Categories: Syntax Highlighting   Tags: , , , ,

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/

Be the first to comment - What do you think?  Posted by smartlogix - at 2:03 pm

Categories: Syntax Highlighting   Tags: , , , ,