Kotatsu Automates HTML Table Generation
Posted by Kevin Purdy at 12:00 AM on May 3, 2008
If you're one of those folks who handwrites HTML, you know how laborious it can be to type out all the tags and descriptors for a simple but highly-efficient table. Kotatsu, a free AJAX utility, generates clean code for however many rows and columns you need, with optional class options thrown on the cells. The code is blog, personal site, and start page-friendly, and that's all there is to it (thankfully).

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
dorylomorphs
Posted 1:56 AM 3/5/08
Seems pretty cool. Could use some more features like colspan.
dorylomorphs
Drel
Posted 2:39 AM 3/5/08
Agreed; this would be much more useful with support for colspan and rowspan.
Drel
wwni60
Posted 3:39 AM 3/5/08
I have been using Notepad++ to generate HTML tables from tab delimited files. Table style can be easily inserted/modified. You can even shuffle columns (e.g., replace (field1)(field2)(field3) with \1\3\2).
wwni60
math0ne
Posted 3:20 AM 3/5/08
Cool, but needs support for adding other table elements such as th, etc.
math0ne
calpchen
Posted 3:10 AM 3/5/08
"Kotatsu" sounds like a dish consisting of breaded, deep-fried Kotaku served with Japanese style Worcestershire sauce. Mmmmm...
calpchen
amishsniper
Posted 4:01 AM 3/5/08
Nice idea, but as was mentioned, colspan, borders, padding, etc. would make it really useful.
It's easier to use a few macros in Notepad++
amishsniper
fadecomic
Posted 4:50 AM 3/5/08
That only makes sense if you're using tables for layout. People are so afraid of tables now, but they're still indicated for use when you're presenting a table or table-like view of related somethings.
fadecomic
OptoGeek
Posted 4:44 AM 3/5/08
What they really need in order to make it useful is to make it generate the code with CSS rather than table tags.
OptoGeek
sumocat
Posted 7:49 AM 3/5/08
C'mon people, this is the author's personal table generator that he's opened for public use. It's designed for one person, not every person.
That said, this thing seems excessively pretty, both in coding and appearance, for what it does. I guess that's to be expected from "The CSS Guy", but still, I'm surprised he didn't at least include a button for removing columns and rows, which would be useful for anyone. Could be done in Javascript like the rest of his code. Other features, like adding spans, might require dirtying up the app with form fields. My color-shifting image map generator is filthy with fields and ugly code, but it has options galore.
sumocat
bjbackitis
Posted 2:37 AM 3/5/08
Seems a little silly... I think it's easier, with the right text editor, to set up a macro to generate the table layout or just build the skeleton of a row and then repeat it as many times as needed. Using this seems almost to be more effort than it's worth... but maybe it's just me.
bjbackitis
zarathustra
Posted 11:23 AM 3/5/08
Copy and paste from the last table I coded. If you can't code a table why even bother?
zarathustra
Ninjeff
Posted 12:45 PM 3/5/08
@calpchen: Actually, a kotatsu is a Japanese heated table, which is why I think the name is rather clever :p
This is probably more for beginners than actual HTML designers. Once you know the ins and outs of HTML, this kind of coding really isn't that big of a deal (at least in my experience).
Ninjeff
muteboy
Posted 9:11 PM 3/5/08
@Drel: Agreed
muteboy