Quote Originally Posted by PairO'Dice Lost View Post
So, for anyone who wants it, I whipped up a quick Java program to convert old-style tables to new-style tables. It can turn this:

Code:
{table=head]Header 1|Header 2
Item 1|Item 2
Item 3|Item 4[/table]
...into either this:

Code:
{table="class:grid"]
[tr][th]Header 1[/th][th]Header 2[/th][/tr]
[tr][td]Item 1[/td][td]Item 2[/td][/tr]
[tr][td]Item 3[/td][td]Item 4[/td][/tr]
[/table]
...or this:

Code:
{table="class:grid"]
[tr]
[th]Header 1[/th]
[th]Header 2[/th]
[/tr]
[tr]
[td]Item 1[/td]
[td]Item 2[/td]
[/tr]
[tr]
[td]Item 3[/td]
[td]Item 4[/td]
[/tr]
[/table]
...depending on how compact you want the table. (And of course it handles normal tables without {table=head] as well.)


Mods, is it okay for me to post a Dropbox link here for people to download it, or should this be handled over PM/email?
We will not be endorsing any such scripts due to the risk of developer abuse. If you wish to make it available, I suggest you make the code open source and upload it somewhere like github. Then, multiple members of the community will be able to see if the code is safe.

P.S. For proper formatting, the spaced out option should tab intent the TD (and TH) cells.

Quote Originally Posted by nyjastul69 View Post
Here is a bit about that.
Also linked in the first post.