I have found the easiest approach is to cut and paste the code into the design view of Dreamweaver. This will translate all of the <,> and other symbols into the & style codes and your web page will display them correctly. Try wrapping the snippet in <code></code> tags. The most effective approach that I have seen so far is to put each line in an ordered list, and applying styles to make it more readable. I'm not sure if this would make it more usable. Ted
-----Original Message----- From: diona kidd [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 3:35 PM To: [email protected] Subject: [WSG] Quoting Code Snippets I've been looking around on the web for a little bit and can't find the answer to my question. If it's rudimentary, please forgive me. How do I properly quote code (eg. Perl) in a webpage and have it display properly? The <code> element seems the most appropriate for the job but it does not maintain indents or line breaks. Thanks in advance, Diona ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
