Posted by: jhawley - Monday, 30 June 2008 17:10:55 |
---|
I wanted to be able to tab over some text in my posts, and spacing them over wasnt working (i hate that about html). Here is the code I used to add it. Added in bbcode.cs at line 69(just after "r_bullet": [code] static private Regex r_tab = new Regex(@"\[tab]", m_options); [/code] Added in bbcode.cs at line 172(just before "// bullets" ) : [code] // tabs bbcode = r_tab.Replace(bbcode, " "); [/code] You can change the width of the tab if you want by adding or removing one or more "nbsp" from the code. |