Support Forums

Full Version: Mybb MyCode - Subscript and Superscript
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?ti...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?ti...132#pid132