Welcome Guest Search | Active Topics | Log In | Register

[tab] bbcode addition Options · View
jhawley
#1 Posted : Tuesday, July 01, 2008 2:10:55 AM

Rank: YAF Forumling


Joined: 7/1/2008
Posts: 6
Location: Portland OR
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);


Added in bbcode.cs at line 172(just before "// bullets" ) :
Code:

                // tabs
                bbcode = r_tab.Replace(bbcode, "     ");


You can change the width of the tab if you want by adding or removing one or more "nbsp" from the code.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC1 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.038 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET