The Hive Custodian
14th of October, 2006, 06:12
Code Boxes
The Code Box
A code box is a box made using the tags. Anything inside a code box will look like this:
text
We use a code box because in code boxes, consecutive spaces are preserved, unlike normal text. This allows tables to be created.
How to Make a Table in a Code Box
First, fire up Notepad, not Word or Wordpad. Type in the table (or whatever) you want, using spaces to line up the column. Now highlight what you wrote, press Ctrl-C (copy), and go to the post screen and press Ctrl-V (paste). Now enclose what you pasted in with tags. For example, suppose you write
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
After you copy it into the post screen and enclose it in tags, it should look like this (but with more spaces):
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Don't worry about the misalignment; the code tags automatically convert default font to Courier New, which lines up the text like Notepad does.
Adding Other Stuff
Unfortunately, the forum is a bit quirky when it comes to bolding, coloring, or doing other fancy things to things within a code box. Suppose we want to make the line "Cleric d8" red. We highlight it, press the color button (http://online-roleplaying.com/forums/images/editor/color.gif), and select red...
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Uh oh! The forum added an extra space before "Cleric"! (Note that it doesn't always do this; just often enough to be annoying.) It seems when the forum inserts a tag inside a code box, it sometimes puts in an extra space or two that you can't see in the post screen, but comes out when you post it. There are two ways around this.
First, you can press this button: http://online-roleplaying.com/forums/images/editor/switchmode.gif. This will switch the editor mode to the raw formatting style, which looks something like this:
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
See that space before "Cleric"? Remove it!
The second way is to enter the tag yourself by typing in what you want, instead of using the forum's buttons. A list of tags can be found here (http://online-roleplaying.com/forums/misc.php?do=bbcode).
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Happy posting!
The Code Box
A code box is a box made using the tags. Anything inside a code box will look like this:
text
We use a code box because in code boxes, consecutive spaces are preserved, unlike normal text. This allows tables to be created.
How to Make a Table in a Code Box
First, fire up Notepad, not Word or Wordpad. Type in the table (or whatever) you want, using spaces to line up the column. Now highlight what you wrote, press Ctrl-C (copy), and go to the post screen and press Ctrl-V (paste). Now enclose what you pasted in with tags. For example, suppose you write
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
After you copy it into the post screen and enclose it in tags, it should look like this (but with more spaces):
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Don't worry about the misalignment; the code tags automatically convert default font to Courier New, which lines up the text like Notepad does.
Adding Other Stuff
Unfortunately, the forum is a bit quirky when it comes to bolding, coloring, or doing other fancy things to things within a code box. Suppose we want to make the line "Cleric d8" red. We highlight it, press the color button (http://online-roleplaying.com/forums/images/editor/color.gif), and select red...
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Uh oh! The forum added an extra space before "Cleric"! (Note that it doesn't always do this; just often enough to be annoying.) It seems when the forum inserts a tag inside a code box, it sometimes puts in an extra space or two that you can't see in the post screen, but comes out when you post it. There are two ways around this.
First, you can press this button: http://online-roleplaying.com/forums/images/editor/switchmode.gif. This will switch the editor mode to the raw formatting style, which looks something like this:
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
See that space before "Cleric"? Remove it!
The second way is to enter the tag yourself by typing in what you want, instead of using the forum's buttons. A list of tags can be found here (http://online-roleplaying.com/forums/misc.php?do=bbcode).
Class Hit Die
Barbarian d12
Bard d6
Cleric d8
Druid d8
Happy posting!