The examples on your site looks good, would love to get a sneak peak at your code, I tried various ways to do seperate bbcodes for table, tr & td, just couldn't get the swines to co-operate, lol.Pony99CA wrote:Sure there is. The example at my Test Board allows any number of columns. The markup is more complicated, though, requiring three BBCodes (TABLE, R and C). Here's the code that I used for the first two examples:
It's simple to implement, but harder to enter. (You have to careful with column counts and can't have any text between the tags, even newlines.)
Code: Select all
[table=2,3x2 Table][r][c]R1C1[/c][c]R1C2[/c][/r][r][c]R2C1[/c][c]R2C2[/c][/r][r][c]R3C1[/c][c]R3C2[/c][/r][/table] [table=3,2x3 Table][r][c]R1C1[/c][c]R1C2[/c][c]R1C3[/c][/r][r][c]R2C1[/c][c]R2C2[/c][c]R2C3[/c][/r][/table]
In fact, I just created a new C= BBCode that allows column and row spanning. You can see the new examples at the link above.