Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mybb MyCode - Subscript and Superscript
#1
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
Robert Picard
http://www.rpicard.net
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a MyCode [MyBB] Laughynose 10 4,137 07-30-2011, 04:36 PM
Last Post: Kewlz
  How to Make your MYBB Central Plugin Compatible with new Mybb Billy Mays 3 1,894 07-12-2011, 06:40 PM
Last Post: Billy Mays
  Mybb MyCode - MyThumb RPicard 2 991 12-19-2009, 08:25 PM
Last Post: RPicard
  Mybb MyCode - MyRoll RPicard 0 633 12-18-2009, 11:25 AM
Last Post: RPicard

Forum Jump:


Users browsing this thread: 1 Guest(s)