List of BBCodes (General)
Dear Sara,
I try to come up with a list and some examples...
[b]foo[/b]
--> foo (bold)
[i]foo[/i]
--> foo (italic)
[u]foo[/u]
--> foo (underlined)
[link=http://www.example.org]link text[/link]
--> link text
[color=foo]bar[/color]
--> bar (colors in hex notation, e.g., #f00 for red)
[size=foo]bar[/size]
--> bar bar (foo = small or large)
These BBCodes for text-formatting are not case-sensitive: [b][/b]
, [i][/i]
, [u][/u]
.
For example [b]foo[/b]
works as well as [B]foo[/B]
.
[size=foo]bar[/size]
is partly case-sensitive; [size=LARGE]bar[/size]
will not work, whereas [SIZE=large]bar[/SIZE]
will do the job.
BBCodes which are not active in this forum, but can be easily implemented are [d][/d]
for deleted text, [sub][/sub]
/[sup][/sup]
for sub-/superscript,...
[msg=foo]link text[/msg]
--> link text (internal link to another post in the forum, where 'foo
' is the 'id' of the post)
[list]
-->
[*]foo
[*]bar
[/list]
- foo
- bar
[img]URI[/img]
-->
Images may be formated apart from the default (left) to float to the right:
[img=right]URI[/img]
-->
Remark: right now the implementation is a little bit buggy, because no
{ clear:left; }
is used, and the image may be placed where you don't expect it...
foo [inlinecode]bar
[/inlinecode] foo --> foo bar
foo (monospaced text within a single line)
[code]foo bar
--> monospaced text with leading/trailing linefeeds:
=== ===[/code]
foo bar
=== ===
Syntax highlighting (see forum/modules/geshi/geshi/ for languages included in the forum's standard installation; more than 50 are available at GeSHI).
[code=language]code-segment[/code]
The selected language
is not case-sensitive, i.e., PHP
works as well as php
.
Examples:
[code=php]code-segment[/code]
$lastupdate=filemtime($PATH_TRANSLATED); $monate_upd=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug", "Sep","Oct","Nov","Dec"); $monat_upd=$monate_upd[date("n", $lastupdate)-1]; $datum_update="last update: ".$monat_upd." ".date("Y", $lastupdate); echo $datum_update;
[code=javascript]code-segment[/code]
function ReturnSquare (x) { var Result = x * x; alert(Result); }
[code=html]code-segment[/code]
<div id="text"> <h1>Heading</h1> <hr /> <p class="citation">Paragraph in citation style...</p> </div>
[code=css]code-segment[/code]
body { color: #000; background-color: #fff; font-size: 100.01%; font-family: Verdana,Arial,Helvetica,sans-serif; text-align: center; /* Centering in Internet Explorer */ margin: 0.25em 0 0.75em 0; padding: 1em 1em 0.1em 1em; min-width: 41em; }
[code=xml]code-segment[/code]
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="gss.xsl"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://bebac.at/</loc> <lastmod>2008-01-03T17:56:00+01:00</lastmod> <changefreq>always</changefreq> <priority>1.00</priority> </url> </urlset>
[code=sql]code-segment[/code]
SELECT UNIX_TIMESTAMP(TIME), subject, tid, text FROM forum_entries GROUP BY tid ORDER BY tid DESC, TIME DESC LIMIT 0, 20
[code=perl]code-segment[/code]
#!/usr/bin/perl -w use strict; print "Content-type: text/htmlnn"; print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">', "n"; print "<html><head><title>Test</title></head><body>n"; print "<h1>Hello World!</h1>n"; print "</body></html>n";
--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)