MyBB Community Forums
Subscript and Superscript - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Subscript and Superscript (/thread-61540.html)



Subscript and Superscript - RPicard - 2009-12-18

Simple Mycode for formating text, mostly used in formulas.

Subscript

Title: Subscript
Description: Lowers the given text.
Regular Expression:
\[sub\](.*?)\[/sub\]

Replacement:
<sub>$1</sub>

Syntax:
[sub]Subscripted Text[/sub]

Demo: http://betarelease.net/showthread.php?tid=31&pid=132#pid132



Superscript

Title: Superscript
Description: Raises the given text.
Regular Expression:
\[sup\](.*?)\[/sup\]

Replacement:
<sup>$1</sup>

Syntax:
[sup]Superscripted Text[/sup]

Demo: http://betarelease.net/showthread.php?tid=31&pid=132#pid132