Re: [WSG] Quoting Code Snippets

2005-03-11 Thread Hassan Schroeder
Paul Novitski wrote: Personally I would find your line-numbering technique more effective if the line numbers showed up by default (perhaps dimmed) [this would serve IE users as well], and then the current line and its number were highlighted on hover. Especially with indented code it's not alw

Re: [WSG] Quoting Code Snippets

2005-03-11 Thread Paul Novitski
At 04:24 PM 3/11/2005, Hassan Schroeder wrote: Depending on what you're showing the code for, line numbers may be almost essential, or at least very useful; here's a sample I did a while back for someone to use as a model for a tutorial: Of course

Re: [WSG] Quoting Code Snippets

2005-03-11 Thread Hassan Schroeder
Ted Drake wrote: 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. Depending on what you're showing the code for, line numbers may be almost essential, or at least

Re: [WSG] Quoting Code Snippets

2005-03-11 Thread Gez Lemon
The code tag is the correct element to use to markup code snippets. You could add a rule to your CSS to make it preserve white space: code { white-space: pre; } The obvious problem is that it won't preserve the white space when CSS isn't available. An alternative is to place the code tags bet

RE: [WSG] Quoting Code Snippets

2005-03-11 Thread Ted Drake
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 tags. The most effective approach that I have