Start-reset markup language

From Esolang
Jump to navigation Jump to search

A start-reset markup language is a fairly common type of esoteric markup language supported by many primitive chat platforms (namely, IRC and Minecraft) that uses a "start formatting" and "reset all formatting" syntax for its markup. An example of this formatting type that uses the "\" character as a formatting starter is:

Syntax Effect
\u Underline all text starting from here
\b Embolden all text starting from here
\i Italicize all text starting from here
\[bg=#RRGGBBAA] Set the background color of all text starting from here to #RRGGBBAA
\[fg=#RRGGBBAA] Set the foreground color of all text starting from here to #RRGGBBAA
\r Reset all formatting to the default (transparent background, black foreground, no italic, bold, or underline)

This seems like an utterly stupid sort markup language- every time you reset, you have to start all formatting you want to continue over again- but it's actually used quite commonly, most notably in Minecraft and on IRC.