Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to Post Code Snippets

Updated: 10 Feb 2009
Admin's picture
+1 1 Vote
Login to vote

Because of the Web's evil-doers, there are a couple things you need to remember when posting code snippets to the Juice.

First, whenever our content management system sees a left angle bracket like this one < it proceeds with caution. We have to be cautious because of the ability for spammers and hackers to inject code into our site using these characters.

To keep your code displaying properly, replace all left angle brackets (except those around HTML tags) with this funny looking string of characters: &lt;

Another trick is to wrap your snippet with <pre></pre> tags. This will add some style to your code and keep it from being wrapped in all the wrong places.

There's an example of what this looks like on the http://www.symantec.com/connect/style page.