Formatting Codes

BML (Book Markup Language) was designed by tmathmeyer. Additional updates and support are from PlanarWarp.

< and [ are interchangeable for all formatting codes. Segments inside of parenthesis can be ignored for same result. Ex: <i(talic(s)> means <i>, <italic>, and <italics> will all do the same thing.

Last regex modification: 3.1.2

If you are importing from URL, the whole book must be inside <book> and </book> tags

InputResult
i<i(talic(s))>§o
b<b(old)>§l
u<u(nderline(d))>§n
s1<s(trike)><del>§m
n/a<m(agic)><obf(uscate(d))>§k
n/a<color=[color]><[color]>
black<black>§0
dark blue<dark(_)blue>§1
dark green<dark(_)green>§2
dark aqua<dark(_)aqua>§3
dark red<dark(_)red>§4
purple<purple><magenta>§5
gold<gold>§6
gray2<grey><gray>§7
dark gray<dark(_)grey><dark(_)gray>§8
blue<indigo><(light(_))blue>§9
green<(light(_))green>§a
aqua2<aqua>§b
red<(light(_))red>§c
pink<pink>§d
yellow2<yellow>§e
white2<white>§f
n/a&[a-fk-o0-9]§[a-fk-o0-9]
text3</i(talic(s))></b(old)></u(nderline(d))></s(trike)></del></format></m(agic)></obf(uscate(d))>§r
text</color>§0
horizontal rule<hr>\n-------------------\n
newline/line break<n><br>\n
Consume wasted characters4(§r)+ (§r more than one time in a row - §r§r§r)§r


1Sadly, WikiCreole doesn't have a strikethrough that I can find other than deletion. Strike will not be dark red.
2Shows up only slightly better in a book. Awful to read.
3§r is unreliable about removing colors in 1.4 (sometimes color will persist on next newline) Recommend using §0§r for full text reset.
4Bukkit does check character limit per page on setPage as of 1.4.6 - this will free up characters wasted by doing something like </i></b></u>


Comments

Posts Quoted:
Reply
Clear All Quotes