CCW homepage (exit CCW Forum)

Computer-Chess Wiki Forum

Back to the forum index
Linear

List of all BBCodes supported on this site (General)

by Ron @, Friday, March 13, 2009, 17:41

Examples:

bold text
italic text
red text (other colors are possible)
bold blue italic text
large text
small text
monospace
monospace red bold
:-) smiley
[image]
this is a link to CCW Forum

You can also show source code using [ code=none ] [/code] (without the spaces inside the square brackets). The text shown below is a 'code=none' block to enable showing the commands. Here is the information as I entered it:

 
[b]bold text[/b]
[i]italic text[/i]
[color=#f00]red text (other colors are possible)[/color]
[b][color=#00f][i]bold blue italic text[/i][/color][/b]
[size=large]large text[/size]
[size=small]small text[/size]
[monospace]monospace[/monospace]
[monospace][b]monospace bold[/b][/monospace]
:-) smiley
[img]http://computer-chess.org/forum/favicon.ico[/img]
[link=http://computer-chess.org/forum/]this is a link to CCW Forum[/link]
 

If you use [ code ] [/code] the forum displays a blue monospaced font. There is also [ inlinecode ] [/inlinecode]. The difference from [ code ] is code falls inline rather than skipping a line first. So you can have printf("Hello World\n"); in the middle of a sentence. The inline code is always shown in monospaced blue.

How to post a table

 
[monospace]
|  1 | Hamsters 0.71      | 19.5 / 25 |        |
|  2 | Tao 5.60           | 19.0 / 25 |        |
|  3 | Baron 2.23         | 17.0 / 25 | 206.75 |
|  4 | Cyrano 0.60b17ja   | 17.0 / 25 | 195.75 |
 
|  5 | Sloppy 0.2.0ja     | 15.5 / 25 |        |
|  6 | Yace 0.9987        | 14.5 / 25 | 170.50 |
|  7 | Danasah 3.97b      | 14.5 / 25 | 169.00 |
|  8 | LGEvolution 1.0018 | 14.0 / 25 | 163.00 |
|  9 | FrancescaMad 0.13  | 14.0 / 25 | 159.50 |
| 10 | Abrok 5.00         | 12.0 / 25 | 149.00 |
| 11 | Chronos 1.95       | 12.0 / 25 | 146.50 |
| 12 | Dragon 4.60        | 11.5 / 25 | 136.25 |
| 13 | Nejmet 3.07        | 11.5 / 25 | 131.75 |
| 14 | Gromit 3.082       | 11.0 / 25 | 130.75 |
| 15 | Anatoli 0.35k      | 11.0 / 25 | 123.25 |
| 16 | SmarThink 0.17a    | 11.0 / 25 | 114.25 |
| 17 | KnightDreamer 3.20 | 10.5 / 25 | 126.00 |
| 18 | Pepito 1.59        | 10.5 / 25 | 122.50 |
| 19 | Arasan 11.20       | 10.5 / 25 | 120.00 |
| 20 | Gosu 0.16          | 10.0 / 25 | 110.25 |
 
| 21 | Amyan 1.597        | 10.0 / 25 | 104.50 |
| 22 | GreenLight 3.0122  |  9.5 / 25 |        |
| 23 | Quark 2.35         |  8.0 / 25 |        |
| 24 | Bruja 1.90ja       |  6.0 / 25 |        |
[/monospace]
 


Use spaces only (no tab characters). Preview the table and make sure everything is lined up nice. Last add any color or bold/italic tags, but don't cross the pipe boundaries (pipe char is '|'). The extra tags takes up no room in the final displayed table. Preview again and, if you are satisfied, submit it.

  9160 views

Syntax-coloring for programming languages added

by Ron @, Sunday, April 05, 2009, 20:47 @ Ron

For programmers, I added language syntax-coloring
(using Geshi: http://sourceforge.net/projects/geshi/ )

Example:

 
 
// yet another 'Hello World' program
#include <stdio.h>
 
int main(int argc, char **argv)
{
    int i;
 
    for (i = 0; i < 10; i++)
    { 
        printf ("Hello World!\n");
    }
    return 0;
}
 

The CCW Forum supports the following languages:
c, cpp, csharp, css, delphi, html, html4strict, java, java5, javascript, lisp, perl, php, sql, and xml.


To syntax-color C++ code, do this:

[code=cpp]
...

[/code]


For C# highlighting use:

[code=csharp]
...

[/code]


If you prefer your code with no coloring use 'monospace' or:

[code=none]
...

[/code]


If you want me to add another language, just ask for it. (Geshi syntax-colors more than 100 languages so all I have to do is upload the appropriate language file.) If you want to experiment posting various code snippets, add them to this thread and I will periodically delete old posts if the thread gets too big.

My TODO list:
- add a button for 'code' with a drop-down of supported languages
- allow posting of FEN diagrams

If anyone wants a particular feature, just ask, and I will work on it next. Be advised that it might take a month or more...

Ron

  9131 views

FEN diagrams added

by Ron @, Thursday, May 21, 2009, 00:09 @ Ron

It's the same syntax as in CCC Forum where you put an uppercase or lowercase 'D' surrounded by square brackets, followed by the fen position.

Like this: [D] rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -

rnbqkbnr
pppppppp
--------
--------
--------
--------
PPPPPPPP
RNBQKBNR

or this:
[D]rnbqk2r/ppp2ppp/3p1n2/2b1p3/3PP3/2N2P2/PPP1N1PP/R1BQKB1R b KQkq d3

rnbqk--r
ppp--ppp
---p-n--
--b-p---
---PP---
--N--P--
PPP-N-PP
R-BQKB-R

A big 'thank you' to my son who puzzled out how BBCode parses its strings and how to hook into the BBCode syntax-parsing tree.
===============================================

My remaining TODO list for the forum (after the bugfixing):
- add some more smileys, especially a thumbs-up one that I like
- add a button for 'code' with a drop-down of supported languages

If anyone wants a particular feature, just ask, and I will work on it next. Be advised that it might take a month or more...

Ron

  9030 views
RSS Feed of thread
3212 Postings in 2138 Threads, 142 registered users, 9 users online (0 registered, 9 guests)
RSS Postings  RSS Threads | Contact
powered by my little forum