Support Forums
Mybb MyCode - Subscript and Superscript - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: Mybb MyCode - Subscript and Superscript (/showthread.php?tid=3735)



Mybb MyCode - Subscript and Superscript - RPicard - 12-18-2009

Simple Mycode for formating text, mostly used in formulas.

Subscript

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

Replacement:
Code:
<sub>$1</sub>

Syntax:
Code:
[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:
Code:
\[sup\](.*?)\[/sup\]

Replacement:
Code:
<sup>$1</sup>

Syntax:
Code:
[sup]Superscripted Text[/sup]

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