Thread Tools Display Modes
06-18-10, 09:54 AM   #1
Falarin
A Cyclonian
 
Falarin's Avatar
Join Date: Jan 2009
Posts: 49
How to add Code Box to a thread reply?

Hello WoWInterface community, I was wondering if anyone could help me. I see some people adding a code box to their reply. How can I do that?
  Reply With Quote
06-18-10, 10:12 AM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Press the button with the # on it above the text box. Or just type in the tags by yourself:

<CODE>textgoeshere</CODE>

With [ ] instead of < >.
  Reply With Quote
06-18-10, 10:19 AM   #3
Falarin
A Cyclonian
 
Falarin's Avatar
Join Date: Jan 2009
Posts: 49
Thank you very much!
  Reply With Quote
06-18-10, 10:56 AM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
If you wish your code to use syntax highlights for Lua code, then use <highlight=Lua> (with [] instead of <>) instead of a [code] block.

Lua Code:
  1. function()
  2.    print("test")
  3. end
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
06-18-10, 08:45 PM   #5
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Originally Posted by Seerah View Post
If you wish your code to use syntax highlights for Lua code, then use <highlight=Lua> (with [] instead of <>) instead of a [code] block.
Only thing annoying with that is you have to quote someone then copy the part inside to get rid of the padding and numbers. Reason why I try to stick with just [code]
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
06-18-10, 10:59 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Yes - this does make it harder for the other person to copy-paste.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
06-19-10, 04:07 PM   #7
nightcracker
A Molten Giant
 
nightcracker's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 716
And for the people replying over here, we could use [noparse][code][/noparse] instead of a hack like <code>
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.
  Reply With Quote

WoWInterface » Site Forums » Site help, bugs, suggestions/questions » How to add Code Box to a thread reply?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off