From ad6557eb6cb275c4f84fb6a20c7de8777ffff583 Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Fri, 14 Sep 2007 03:31:09 +0000 Subject: [PATCH] Changed examples for bbcode git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.0@41731 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- parsers/BBCodeParser.php | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/parsers/BBCodeParser.php b/parsers/BBCodeParser.php index ec53e3ab2..bbb8d4102 100644 --- a/parsers/BBCodeParser.php +++ b/parsers/BBCodeParser.php @@ -35,7 +35,15 @@ class BBCodeParser extends TextParser { "Title" => "Struck-out Text", "Example" => "[s]Struck-out[/s]" )), - + new ArrayData(array( + "Title" => "Colored text", + "Example" => "[color=blue]blue text[/color]" + )), + new ArrayData(array( + "Title" => "Alignment", + "Example" => "[align=right]right aligned[/align]" + )), + new ArrayData(array( "Title" => "Website link", "Description" => "Link to another website or URL", @@ -69,25 +77,11 @@ class BBCodeParser extends TextParser { "Example" => "[code]Code block[/code]" )), new ArrayData(array( - "Title" => "HTML Code Block", - "Description" => "HTML-formatted code block", - "Example" => "[html]HTML code block[/html]" - )), - new ArrayData(array( - "Title" => "HTML Code Block", - "Description" => "HTML-formatted code block", - "Example" => "[code html]HTML code block[/code]" - )), - new ArrayData(array( - "Title" => "PHP Code Block", - "Description" => "PHP-formatted code block", - "Example" => "[php]PHP code block[/php]" - )), - new ArrayData(array( - "Title" => "PHP Code Block", - "Description" => "PHP-formatted code block", - "Example" => "[code php]PHP code block[/code]" - )) + "Title" => "Unordered list", + "Description" => "Unordered list", + "Example" => "[ulist][*]unordered item 1[*]unordered item 2[/ulist]" + )) + ); }