MyBB Community Forums

Full Version: Table editor or bbcodes for tables in posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I'm looking for simple bbcodes for tables in posts like in wikipedia. For example:

Quote:Basic Syntax

Table columns are delimited by pipe characters (|), while table rows are separated with a simple line break:
|!column heading 1|!column heading 2|!column heading 3|h
|row 1, column 1|row 1, column 2|row 1, column 3|
|row 2, column 1|row 2, column 2|row 2, column 3|
|row 3, column 1|row 3, column 2|row 3, column 3|
|!column footer 1|!column footer 2|!column footer 3|f
|caption|c

Note that the trailing |h at the end of the first line defines the table header, which is semantically different from the column heading. Usually, however, the table header will contain the column headings.
Text Alignment

As the following example shows, spaces before and after a cell's content control the alignment:
|default alignment|
|left-aligned cell content |
| right-aligned cell content|
| centered cell content |
Column Spans

A carets (>) in a table cell creates a so-called "colspan", spreading the cell across several columns.

Example:
|>|>| cell #3 |

Here the first two cells are omitted so that the third cell spreads across all three columns.
Row Spans

A tilde (~) spreads a table cell across several rows, creating a so-called "rowspan".

Example:
|cell #1|cell #2|
|~|cell #4|
|~|cell #6|

Here the first cell spreads across three rows.

Or maybe a good editor? Please recomend me a best solution at your opinion.
nice idea, me too needed like this Smile