   Remove or rename the [code] tags?
  Any chance we could either get rid of or rename the code tags? All they do is translate to <pre> tags anyway, and I've seen more and more people posting huge chunks of code with code tags rather than source tags.If the code tags had the same effect as the source tags, then people who post large chunks of code will have their posts automatically converted to the inline frames, which is usually preferable; and the code tags are far less useful anyway (personally, I use <tt> tags instead).Anyone agree / disagree?   
  Agree   ;  Actually, I find the  variety easier to read than the [ source ]. However I do agree that it's better to have a single method to include code. So:<br><br><!--QUOTE--><BLOCKQUOTE><span class="smallfont">Quote:</span><table border=0 cellpadding=4 cellspacing=0 width="95%"><tr><td class=quote><!--/QUOTE--><!--STARTQUOTE-->agree / <strike>disagree</strike><!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE--><br><br>Talking about the source tags, I'd love to see the following features (although I realize there is already enough science to be done):<br><ul><br><li>Automatic line numbers. Referring to <i>line 10</i> is much nicer than being forced to describe it as <i>The second if statement after the declaration of Foo in the function Bar.</i></li><br><li>Expandable source areas. The &#111;nly reason I sometimes prefer the code tags over the source &#111;nes is that reading the contents in the small window is somewhat cumbersome, especially if it requires scrolling. It's more difficult to see the full picture and the scroll bar focus will sometimes suddenly move to the main browser window after you have reached the end of the code. I understand the need to keep them small, so it would be nice if it had a simple button to toggle expand/collapse.</li><br></ul>;  Here's an exercise, examine this post in multiple browsers.This is a code block with a single line.This is a source block with a single line.Notice what happens to the source block.   ;  Okay, after someone fixes the fixed height bug in IE I will agree.   ;Quote:Original post by SiCraneHere's an exercise, examine this post in multiple browsers.This is a code block with a single line.*** Source Snippet Removed ***Notice what happens to the source block.Ah, I wasn't aware that happened in IE; I only use Firefox usually.So, which is it "supposed" to be? Surely the way it shows differently in different browsers is a seperate bug? In Firefox the code and source tags take up similar vertical space.   ;  I'm not on the site development team, but I believe that it's supposed to be shrunk to fit. IIRC, at one point things were swapped: Firefox displayed the big ugly white box and IE displayed the smaller box.   ;  Sadly, the way the shrinking is currently implemented, it relies on the CSS2 max-height property - which is not implemented in IE. A highly unfortunate thing. If you check the source code to this page, you'll find near the top a conditional comment that refers to the issue. That is, the current implementation is deliberate because it's better than having no browsers shrink at all.What could probably be done is a check of whether the box contains more than a certain number of newline characters, and then either apply or don't apply the 'height' property based on that (allowing it to shrink naturally if it's below the threshold). The reason I didn't do this originally, however, is because that won't be the easiest thing in the world to wire up.If anyone can find a neater, shorter way of doing it with CSS, then I'd love to hear it.   ;  About  tags.<br><br>Couldn't it be possible to automagically convert them to [ source ] tags when the text is more than X (maybe 5) lines in length? That way, the &lt; pre &gt; formating would still be available (for math equations for example) while the problem of big code chunks inlined in the text would be solved.;Quote:Original post by TrillianAbout  tags.<br><br>Couldn't it be possible to automagically convert them to [ source ] tags when the text is more than X (maybe 5) lines in length? That way, the &lt; pre &gt; formating would still be available (for math equations for example) while the problem of big code chunks inlined in the text would be solved.<!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE-->I like that idea actually. There might be some cases where people would want to use large chunks of text in code tags (E.g. displaying &#111;ne of the frames from the end of Portal, or some other ascii art or something), but I suppose HTML pre tags could be used then.<br><br>Out of interest, is the bbcode parsed at post time, or post view time?