Font Formatting Blocks
Sage offers a convenient way to express bold, italic, underline,
and monospace font formatting. Surround the relevant text in
the corresponding special character:
As you can see above, back-ticks (`…`) produce a monospace
font, but they also enclose the text in a shaded, rounded rectangle.
If you want monospace text, but without the shading, use the
[tt] tag.
Conversely, if you want the shading, but without monospace,
use the [box] tag.
Style | Character | Sage Example | Final Web Content |
---|---|---|---|
Bold | Asterisks | Some *bold* text | Some bold text |
Italic | Slashes | Some /italic/ text | Some italic text |
Underline | Tildes | Some ~underlined~ text | Some underlined text |
Monospace | Back-Ticks | Some `monospace` text | Some monospace text |
Font formatting blocks do not always begin with the associated special
character. For example, not every slash starts italic text...
You /may/ have an apple and/or some peanuts.
Above, the word "may" is in italics (due to the first two slashes),
but the final slash (in "and/or") does not start italics.
The rule is that a slash (or one of the other three font formatting
characters) only begins a font formatting block if the character
before is not a letter, digit, or underscore.
Similarly, once a font formatting block begins,
it ends with the next instance of the relevant character,
so long as it isn't followed by a letter, digit, or underscore.
For example…
The expression *a*b* means *a times b*
Above, there are a total of five asterisks.
The first one starts a bold block, but the next one does not
end the block (because a letter follows it).
The third asterisk does end the bold block (because it is not
followed by a letter, digit, or underscore).
Finally, the last two asterisks make a second bold block.
In other words, you cannot begin or end font formatting blocks
in the middle of words.
If limitation gets in the way, use the related
Font Formatting Tags: [b]
[i], [u], and [m].
⏱ Last Modified: 10/24 9:45:52 am