ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Vorschläge / phpbb Bbcode test suite v0.0.2 auto-linkification:


Seite 1 von 1

Hagar schrieb am 18.12.2002 um 17:37 Uhr

Enjoy ;)

http://something.com
www.something.com
http://something.com/foo.php?this=that&theother=some%20encoded%20string
Email
nate@phpbb.com (auto)
[email]nate@phpbb.com[/email] open-close
[email=nate@phpbb.com] 1 tag
[email=nate@phpbb.com]Nate phpBB[/email] open-close named

Simple code block. 

Code block, with some nesting.
[code]This is the nested part. 

And this is after the nesting. [/code]

Code block, with other BBCode inside.
[b]bolded[/b]
[i]italic[/i]

url:
[url=http://www.totalgeek.org]totalgeek.org[/url]
[url]www.totalgeek.org[/url]

Unordered list:
[list]
[*] This is the first bulleted item.
[*] This is the second bulleted item.
[/list]

Ordered list:
[list=A]
[*] This is the first bulleted item.
[*] This is the second bulleted item.
[/list]
[quote]And a quote!
[/quote]

Simple quote block.

quote block, with some nesting.

This is the nested part.

And this is after the nesting.

Quote block, with other BBCode inside. bolded, italic email, url: [url=http://www.totalgeek.org]totalgeek.org[/url] www.totalgeek.org

Unordered list: [list] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list] ordered list: [list=A] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list]

And a some code! 

php code block:

<?php
echo phpinfo();
print "$woei";
echo '$test';
?>

Unordered list: [list] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list] ordered list: [list=A] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list]

And a quote!

Simple quote block, nothing special here.

Nested quote block..

This is the nested part

And this is after the nesting.

quote block, with other bbcode inside. bolded, italic email, url: [url=http://www.totalgeek.org]totalgeek.org[/url] www.totalgeek.org

Unordered list: [list] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list] ordered list: [list=A] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list]

And some code! 

Unordered list: [list] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list] ordered list: [list=A] [*] This is the first bulleted item. [*] This is the second bulleted item. [/list] Unordered list with a nested ordered list: [ulist] [li] [list=A] [*] This is the first ordered item. [*] This is the second ordered item. [/list] [*] This is the second bulleted item. [/li] [/ulist] Ordered list with a nested unordered list: [list=A] [li] [ulist] [*] This is the first unordered item. [*] This is the second unordered item. [/ulist] [*] This is the second ordered item. [/li] [/list] Unordered list with other bbcode: [list] [*] this is bold [*] this is italic [*] this is an url http://codding.org [*] this is a long-form url [url=http://codding.org]codding.org[/url] [/list] Ordered list with other bbcode: [list=1] [*] this is bold [*] this is italic [*] this is an url http://codding.org [*] this is a long-form url [url=http://codding.org]codding.org[/url] [/list] bold, italic email, url: [url=http://www.totalgeek.org]totalgeek.org[/url] www.totalgeek.org

Unordered list with a nested unordered list: [ulist] [li] [ulist] [*] This is the first ordered item. [*] This is the second ordered item. [/ulist] [*] This is the second bulleted item. [/li] [/ulist] Ordered list with a nested ordered list: [list=A] [li] [list=1] [li] This is the first unordered item.[/li] [li] This is the second unordered item.[/li] [/list] [li] This is the second ordered item.[/li] [/li] [/list]

Jonas schrieb am 18.12.2002 um 17:47 Uhr

lol ;)

thwb just supports the necessary things :D

Hagar schrieb am 18.12.2002 um 17:55 Uhr

I know the lists are overdone ;) but the other BBcodes are also partially supported.
/me in search of a link to some great regexp's

Jonas schrieb am 18.12.2002 um 18:00 Uhr

HERE are some regexp's, i think you will understand the code if not the language ;)

Hagar schrieb am 18.12.2002 um 18:10 Uhr

The url with example parser and license in dutch :)
The source is free for non-commercial use! Especially the settings link may be interesting cause that contains all the regexp's used for the parser.
Perhaps it can be of use for the further development of this forum

http://vulcanus.its.tudelft.nl/acm/parse/

Jonas schrieb am 18.12.2002 um 22:05 Uhr

hey, thats interesting...

i'll move this thread to the proposations board ;)

Seite 1 von 1