TxStyle · Textile Documentation

The Textile Markup Reference for Textpattern


Superscript and subscript

Superscript is indicated by surrounding carets ^, and subscript text by surrounding tildes ~ after a preceding space.



Input (editable)

Browser
HTML

More about: Superscript and subscript

To avoid spaces around the super- and subscripted text, square brackets have to be used. The above example then should be rewritten as:

Global warming in the 21[^st^] century is mostly caused by CO[~2~] in the atmosphere.

or a chemical formula:

Calcium borate: Ca[~3~](BO[~3~])[~2~]

Paste code into the box above.

Further reading: Superscript and subscript




PHP Textile v3.7.0