Author Topic: PSA: [code][/code] vs. [tt][/tt]  (Read 1539 times)

I wouldn't be surprised if I'm the only one who feels this way. Regardless, this:

Code: [Select]
print "Hello World!"

Is ugly as forget. All it does is make the text smaller and obscure it in front of an unattractive, gray, unpadded background. Doesn't even have syntax highlighting.

A nice alternative is [tt][/tt]:

print "Hello World!"

At least then, the text is far more readable, and is in a monospaced font.

If you wonderful forum-goers would be so kind as to use the latter rather than code tags, that would be great. Thanks.
« Last Edit: August 06, 2013, 10:17:18 PM by Kingdaro »


pretty sure code keeps whitespace vs. tt


tt does
    indeed
        keep the whitespace.


alright then, carry on

Code: [Select]
Welcome to the Programming Forums that once used to be called Blockland Forums, today I'll be your guide.

Code: [Select]
don't tell me what to do
okay fine

Code: [Select]
doesn't need to look pretty, it serves it's purpose

Code: [Select]
doesn't need to look pretty, it serves it's purpose
...I'm confused. Are you actually acknowledging the fact that tt is a better, very easily used solution, yet you refuse to use it simply because the code tag exists? Or do you disagree?

It's fine if you disagree, but I think it's kind of stupid if you don't.
« Last Edit: August 06, 2013, 10:30:23 PM by Kingdaro »

I prefer tt too. It's better for ASCII art.

                                                                           
                               `````.......```                             
                           `..---:----------..--.``                       
                        `.----------------------.....`                     
                      `.-------:----::-------------..-.                   
                     ``.....---:-----::::::::---------..`                 
                   ``..----::::/------....--------:-----.`                 
                  `.-:::+::/:--/://::::::::://-....:..---..               
                 .:::::+///.```/////:/:::::::/+/::-+:.``````               
                .:/:::/++:`````.+/::////////://o/:/+s::--` .               
               `-//::/+o-...--.`:+-`-/////////:/+//oy:::::..               
               .:-////o-`````````/+```.:+++/:://oo/os//::::-               
               :..///o+``:/+o/-```/-`````-/oo+///o+so/////:-               
               / .///s/`o-.-dds.```:````-+/oddhy+oyy//////+-               
               -  ///s/./ +ohyo```````````/+hhhmy:so/////+o.               
                  .//o/`. +////````````` `y+yssy+`++////os/               
                   -/o/..`.--.``````````` /---+:..////+yyo.               
                    :+/---..````.``````````--..`.//+oo+ys:                 
              ..```-+y/-...``````````````..----:/osyy//so                 
               .:shdddyo:.````````````````.--:/+yyyyo+ss:                 
        ``````-ohmddddmmmh:`````.`````````...../sssyyyso/                 
     -+syyhhhddddddddddmmmd:````...```````...-+ssosyyssso+-`               
   `sddysshdddddddddddddm+.-.```````````..-:++s+/ss+:...-/o+/:-.`         
   hmddyyosdhyyddddddddhd..`.-/-`````.-:/+++++//o/...``````.````           
  -mmddosoddhhdhhdhhhddddo`.`-/ysoo+++/++++++///..``````````-             
  `dmmdddhdddhydddddddssdm:```:oo++////+++//+/:.`````````````.             
   :my-/yhdddyyy+sooyho`ymh````////+///////+/-`.:````````````-             
    -:.`.+hdddsodhdhhhd-.dh``.`:///+/////:+:-`./.````````````-             
     ..`.`-sdhhddmddddds`+y````.://////-.::/.`:/`````````````.             
     -...`.-ddhdddddddmh`-.```..`-::--.`.//:`-/- ``````````..-             
      .:...`+mddddddmmNh``````.`.````.``//+.`-/-``````````..//.           
       `-...`/ydmmmmNNd/`````.`````````-///``-/.`````````..-o+/.           
         `-.```-/+syhy:``````-`````````//+:``.+`````````...oo++/-         
           .::-.````-:-`````.:.```````-//o:``.- ````````../ys+++/:`       
             `///:.`.`-````--..```````-/+s:``:`````````..:hyyoo++//`       
              ..:-.`.-.:.```````..````-+oss-/. ````````.-yhyysos++//.     
              .`````-sos+-```````.-/+oossyyyo ````````..ohyyyyoso++//.     
              .`````.ssyyy:```````-ossssyysy-`````````./hhyyyysoso++//.   
            .:.``````ossyhs+.```````:syyyyhs`````````..yhyyyyyyosso++//`   
         `.:+/```````/yyso+/-````````./shdd:`````````.odyyyyyyyosyoooo/-   
   `...--::-o.```````:h+-```.:-````````./sy`````````./ddyyyyyyysyyoooo+/   
      ```  :o````````-h-.`-:::+/``````````.`.``````.:hdyyyyyyyyyyysoo-++   
          `o/````````-hs:-:::+hho.```````````.`````-ydhyyyyyyyyyhysoo`:+` 
          :o/``````../hds::/ohhdhy:.``````````````.shhyyhyyyyyyyhyso: .o   
          +os````...-/soo/:://://+o/-.```````````./++yyyyyyyyyyyyys/  `+   
          +sy.``...-/+y+-``````````.::-.````````.///:yyy:yyyyyyyyy:   `-   
          :ss `..../+yyo`````````````.::-.`````.///:.hyo +yyyhhy+.    `   
          `s+  /+.:/:yyy-``````````````.-::.``-///-..oy. `yyhs:`           
           -o  `s.`  +hhs`````````````````-:--.--.....:   -yy             
            .-  `/   -hoo/````````````````````````......`  :s             
                     :+ /h-``````````````````````````....`  ..             
                    `.  .ho``````````````````````````````..`               
                         :`````````-```````````````````````..             
                        ````````````-````````````````````````-`           
                        .```````````./````````````````````````..           
                       ` ````````````..````````````````````````.`         
                       . ```````````````````````````````````````.`         
                      .  ````````````````````````````````````````.         
                      -  `````````````````````````````````````````:.       
                     -o:.````````````````````````````````````.-:/+os       
                     +o+o+o/:.````````````````````````-/-://++++osss.     
                     o/-+:/ssoo/:-.....``.......--:/+ossss+/++:-++++/     
                    ..`-/o-:ysssssooooo++oooooooossssssss-.o+/:.....:     
                    -`````.:ossssssssssssssssssssssssso+:...```.......     
                   `.````````-+syyssssssssssssssssys+:.````````......-     
                   . `````````.:+shyysssssssssssyyo-````````````.....-     
                   . ``````````.:/+shhhyyyyyyyhhy-``````````````.....-     
                   . ```````````.://+yhdddddddds.```````````````.....-     
                  .` ````````````-////+shhddhhy.```````````````......-     
                  .  `````````````://///+++:.-.````````````````.......     
                  .  ``````````````://///o`  . ````````````````.......     
                  .  ``````````````-/////+  .` ```````````````......-     
                  .  ``````````````.://///  . ```````````````.....--`     
                  . ````````````````:////: .`````````````````...----       
                  . ````````````````.////: .````````````````....--:`       
                  . `````````````````:///-.````````````````....---.       
                  .  ````````````````-///..````````````````...----         
                  .  ````````````````.//+.````````````````....---         
                  .  `````````````````///.````````````````...---           
                  `` `````````````````://.```````````````....--`           
                   . `````````````````:/+````````````````...-:`           
                   - `````````````````-+:```````````````....-.             
                   . `````````````````-+````````````````...--             
                   ```````````````````-:````````````````...-               
                    .`````````````````:.` `````````````...:               
                    -`````````````````/````````````````..-                 
                    ..````````````````:````````````````.-`                 
                     -```````````````..```````````````.-`                 
                     . ```````````````````````````````-.                   
                     `.``````````````````````````````.-                   
                      .`````````````.```````````````..                     
                      .`````````````.``````````````..                     
                       .```````````..`````````````.-                       
                       -```````````-``````````````-                       
                       .``````````.-`````````````:`                       
                        -``......`-......```````:.                         
                        :`........:.........```-+                         
                        :`.`...-://..`.......`./s                         
                       `.`...-:////-.........`-:/:              `         
                      `.```.-///////......`.``..:/-        `.``..``````   
                     ``````-///////o-````````````-/:       `.`.` .`````   
                     .`````-//////+:`.````````````./:       ` ````` ` ``   
                    .``````.///++++  -.````````````./`      ........````   
                   .```````.//++++-  `/.````````````.:      ````  ``       
                   -```````://+++o    /:.````````````..                   

Code: [Select]
                                                                           
                               `````.......```                             
                           `..---:----------..--.``                       
                        `.----------------------.....`                     
                      `.-------:----::-------------..-.                   
                     ``.....---:-----::::::::---------..`                 
                   ``..----::::/------....--------:-----.`                 
                  `.-:::+::/:--/://::::::::://-....:..---..               
                 .:::::+///.```/////:/:::::::/+/::-+:.``````               
                .:/:::/++:`````.+/::////////://o/:/+s::--` .               
               `-//::/+o-...--.`:+-`-/////////:/+//oy:::::..               
               .:-////o-`````````/+```.:+++/:://oo/os//::::-               
               :..///o+``:/+o/-```/-`````-/oo+///o+so/////:-               
               / .///s/`o-.-dds.```:````-+/oddhy+oyy//////+-               
               -  ///s/./ +ohyo```````````/+hhhmy:so/////+o.               
                  .//o/`. +////````````` `y+yssy+`++////os/               
                   -/o/..`.--.``````````` /---+:..////+yyo.               
                    :+/---..````.``````````--..`.//+oo+ys:                 
              ..```-+y/-...``````````````..----:/osyy//so                 
               .:shdddyo:.````````````````.--:/+yyyyo+ss:                 
        ``````-ohmddddmmmh:`````.`````````...../sssyyyso/                 
     -+syyhhhddddddddddmmmd:````...```````...-+ssosyyssso+-`               
   `sddysshdddddddddddddm+.-.```````````..-:++s+/ss+:...-/o+/:-.`         
   hmddyyosdhyyddddddddhd..`.-/-`````.-:/+++++//o/...``````.````           
  -mmddosoddhhdhhdhhhddddo`.`-/ysoo+++/++++++///..``````````-             
  `dmmdddhdddhydddddddssdm:```:oo++////+++//+/:.`````````````.             
   :my-/yhdddyyy+sooyho`ymh````////+///////+/-`.:````````````-             
    -:.`.+hdddsodhdhhhd-.dh``.`:///+/////:+:-`./.````````````-             
     ..`.`-sdhhddmddddds`+y````.://////-.::/.`:/`````````````.             
     -...`.-ddhdddddddmh`-.```..`-::--.`.//:`-/- ``````````..-             
      .:...`+mddddddmmNh``````.`.````.``//+.`-/-``````````..//.           
       `-...`/ydmmmmNNd/`````.`````````-///``-/.`````````..-o+/.           
         `-.```-/+syhy:``````-`````````//+:``.+`````````...oo++/-         
           .::-.````-:-`````.:.```````-//o:``.- ````````../ys+++/:`       
             `///:.`.`-````--..```````-/+s:``:`````````..:hyyoo++//`       
              ..:-.`.-.:.```````..````-+oss-/. ````````.-yhyysos++//.     
              .`````-sos+-```````.-/+oossyyyo ````````..ohyyyyoso++//.     
              .`````.ssyyy:```````-ossssyysy-`````````./hhyyyysoso++//.   
            .:.``````ossyhs+.```````:syyyyhs`````````..yhyyyyyyosso++//`   
         `.:+/```````/yyso+/-````````./shdd:`````````.odyyyyyyyosyoooo/-   
   `...--::-o.```````:h+-```.:-````````./sy`````````./ddyyyyyyysyyoooo+/   
      ```  :o````````-h-.`-:::+/``````````.`.``````.:hdyyyyyyyyyyysoo-++   
          `o/````````-hs:-:::+hho.```````````.`````-ydhyyyyyyyyyhysoo`:+`
          :o/``````../hds::/ohhdhy:.``````````````.shhyyhyyyyyyyhyso: .o   
          +os````...-/soo/:://://+o/-.```````````./++yyyyyyyyyyyyys/  `+   
          +sy.``...-/+y+-``````````.::-.````````.///:yyy:yyyyyyyyy:   `-   
          :ss `..../+yyo`````````````.::-.`````.///:.hyo +yyyhhy+.    `   
          `s+  /+.:/:yyy-``````````````.-::.``-///-..oy. `yyhs:`           
           -o  `s.`  +hhs`````````````````-:--.--.....:   -yy             
            .-  `/   -hoo/````````````````````````......`  :s             
                     :+ /h-``````````````````````````....`  ..             
                    `.  .ho``````````````````````````````..`               
                         :`````````-```````````````````````..             
                        ````````````-````````````````````````-`           
                        .```````````./````````````````````````..           
                       ` ````````````..````````````````````````.`         
                       . ```````````````````````````````````````.`         
                      .  ````````````````````````````````````````.         
                      -  `````````````````````````````````````````:.       
                     -o:.````````````````````````````````````.-:/+os       
                     +o+o+o/:.````````````````````````-/-://++++osss.     
                     o/-+:/ssoo/:-.....``.......--:/+ossss+/++:-++++/     
                    ..`-/o-:ysssssooooo++oooooooossssssss-.o+/:.....:     
                    -`````.:ossssssssssssssssssssssssso+:...```.......     
                   `.````````-+syyssssssssssssssssys+:.````````......-     
                   . `````````.:+shyysssssssssssyyo-````````````.....-     
                   . ``````````.:/+shhhyyyyyyyhhy-``````````````.....-     
                   . ```````````.://+yhdddddddds.```````````````.....-     
                  .` ````````````-////+shhddhhy.```````````````......-     
                  .  `````````````://///+++:.-.````````````````.......     
                  .  ``````````````://///o`  . ````````````````.......     
                  .  ``````````````-/////+  .` ```````````````......-     
                  .  ``````````````.://///  . ```````````````.....--`     
                  . ````````````````:////: .`````````````````...----       
                  . ````````````````.////: .````````````````....--:`       
                  . `````````````````:///-.````````````````....---.       
                  .  ````````````````-///..````````````````...----         
                  .  ````````````````.//+.````````````````....---         
                  .  `````````````````///.````````````````...---           
                  `` `````````````````://.```````````````....--`           
                   . `````````````````:/+````````````````...-:`           
                   - `````````````````-+:```````````````....-.             
                   . `````````````````-+````````````````...--             
                   ```````````````````-:````````````````...-               
                    .`````````````````:.` `````````````...:               
                    -`````````````````/````````````````..-                 
                    ..````````````````:````````````````.-`                 
                     -```````````````..```````````````.-`                 
                     . ```````````````````````````````-.                   
                     `.``````````````````````````````.-                   
                      .`````````````.```````````````..                     
                      .`````````````.``````````````..                     
                       .```````````..`````````````.-                       
                       -```````````-``````````````-                       
                       .``````````.-`````````````:`                       
                        -``......`-......```````:.                         
                        :`........:.........```-+                         
                        :`.`...-://..`.......`./s                         
                       `.`...-:////-.........`-:/:              `         
                      `.```.-///////......`.``..:/-        `.``..``````   
                     ``````-///////o-````````````-/:       `.`.` .`````   
                     .`````-//////+:`.````````````./:       ` ````` ` ``   
                    .``````.///++++  -.````````````./`      ........````   
                   .```````.//++++-  `/.````````````.:      ````  ``       
                   -```````://+++o    /:.````````````.. 

beeutiful

I think tt is better when it's small bits of code. For large snips of code, I think the code tag works better to make it more clear and take up less space.

I think tt is better when it's small bits of code. For large snips of code, I think the code tag works better to make it more clear and take up less space.
Yeah, I agree somewhat.

If only the code tag was monospaced and had some sort of button to show/hide it like most forums do.

I just like using the code tag if I'm specifying something that someone would need to copy and paste. The box makes it pretty obvious exactly what you're supposed to select.