NAME
HTML::Editor::BBCODE - BBCODE for HTML::Editor
required Modules
HTML::Entities
SYNOPSIS
use HTML::Editor::BBCODE;
my $test = ...
BBCODE(\$test);
print $test;
DESCRIPTION
Supported BBCODE
[left]left[/left]
[center]center[/center]
[right]right[/right]
[b]bold[/b]
[i]italic[/i]
[s]strike[/s]
[u]underline[/u]
[sub]sub[/sub]
[sup]sup[/sup]
[img]http://url[/img]
[url=http://url.de]link[/url]
[email=email@url.de]mail me[/email]
[color=red]color[/color]
[google]lindnerei.de[/google]
[blog=http://referer]text[/blog]
[h1]h1[/h1]
[h2]h2[/h2]
[h3]h3[/h3]
[h4]h4[/h4]
[h5]h5[/h5]
[ul]
[li]1[/li]
[li]2[/li]
[li]3[/li]
[/ul]
[ol]
[li]1[/li]
[li]2[/li]
[li]3[/li]
[/ol]
[hr]
[code=] see highlightCode
be careful function is case sensitive.
EXPORT
BBCODE()
BBCODE
Public
BBCODE
highlightCode
highlightCode( $string,$language);
[code=language] .. [code]
language tags
Perl
Java
C++
XML
Ruby
Python
PHP
JavaScript
HTML
CSS
Bash
SQL
AUTHOR
Dirk Lindner <lze@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2005 - 2015 by Hr. Dirk Lindner
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.