File: bbcode.php

package info (click to toggle)
boinc 5.4.11-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 21,440 kB
  • ctags: 16,986
  • sloc: cpp: 70,682; ansic: 45,747; php: 35,513; xml: 10,487; sh: 9,324; python: 4,291; makefile: 1,958; asm: 1,258; perl: 914; sql: 395; csh: 126; pascal: 124
file content (36 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require_once("../inc/util.inc");

page_head("BBCode tags");
echo "

<p>
BBCode tags let you format text in your profile and message-board postings.
It's similar to HTML, but simpler.
The tags start with a [ (where you would have used &lt; in HTML)
and end with ]
(where you would have used &gt; in HTML).</p>
<p>Examples:</p>
<ul>
	<li>[b]Bold[/b] to <b>Bold</b></li>
	<li>[i]Italic[/i] to <i>Italic</i></li>
	<li>[u]Underline[/u] to <u>Underline</u></li>
	<li>[size=15]Big text[/size] to <span style=\"font-size: 15px\">Big text</span></li>
	<li>[color=red]Red text[/color] to <font color=\"red\">Red text</font></li>
	<li>[url=http://google.com/]Google[/url] to <a href=\"http://google.com/\">Google</a></li>
	<li>[quote]Quoted[/quote] for quoted blocks of text</li>
	<li>[img]http://some.web.site/pic.jpg[/img] to display an image</li>
	<li>[code]Code snippet here[/code] to display some code</li>
	<li>[pre]Pre-formatted text here[/pre] to display some pre-formatted text</li>
</ul>
<p>Lists are also possible:<br/>[list]<br/>*Item 1<br/>*Item 2<br/>[/list] to:</p>
<ul>
	<li>Item 1</li>
	<li>Item 2</li>
</ul>
<p>
If you don't close a tag or don't specify a parameter correctly,
the raw tag itself will display instead of the formatted text.</p>
";
page_tail();
?>