Page 1 of 1

Section BBCode

Posted: 26 Jun 2010, 16:52
by KukY13
Hi, I'm new to here and I'm looking for some new stuff for my forum.
I wanted to provide you with a BBCode which I thouht of, and it provided pretty useful to me in long posts.

BBCode:

Code: Select all

[section={IDENTIFIER}]{TEXT}[/section]
HTML Replacement:

Code: Select all

<a href="#{IDENTIFIER}" id="{IDENTIFIER}" style="font-weight:bold;">{TEXT}:</a>
Help Line:

Code: Select all

Allows directly linking to a user-defined section of a post.
Example:

Code: Select all

[section=intro]Introduction[/section]
This is a section text.
[section=main]Main[/section]
This is another section text.
NOTES:
  • style="font-weight:bold;" isn't required, but automaticaly increases visibility of the section, which is useful to me.
  • The : after {TEXT} isn't required, but automaticaly places a colon after the text, which also proved useful to me.