If you code HTML, Zen Coding will change your life
If you write HTML for a living, and you don't know Zen Coding yet, you are missing out big time.
This is basically the coolest thing I've seen all week. I have been using it for a few days now; at first it seemed kind of gimmicky and I wasn't sure I could grasp the syntax, but today I really got to explore it, and woah is it awesome.
Okay, I'll stop tripping over myself with excitement over here and try to tell you what this thing does, in a nutshell: It expands abbreviations into complete HTML structures (divs, tables, cells, links, lists), and does it in the most freaking intelligent way I have seen in a long time. I'm serious!
For instance, that arcane-looking string of text in the screenshot expands with a single keystroke into this:

This thing leaves any other tag-completion method I have ever seen for HTML in the dust. It's light-years beyond anything else I've witnessed -- and autocompletion is something I've looked into deeply, with multiple editors and IDEs.
There are existing implementations for multiple editors, such as Komodo Edit (which is the one I'm using). The syntax is easy to master, especially if you're familiar with CSS.
There are easy ways to wrap existing lines with tags. For example, I can take the following text:
Foo
Bar
Baf
Select it in my editor, select Zen Coding > Wrap with Abbreviation (or hit a shortcut key) and then type ul>li*>a>b and immediately get the following:

Seriously -- if that is not sheer genius, I don't know what is. If you're not fully sold yet, I've put a video introducing the system in further detail right after the jump. I have only touched briefly on what it can do -- there are many other features, such as automatic element numbering. I will certainly not author another single HTML document without the benefit of Zen Coding.














Comments
35
Subscribe to commentsMattMay 2nd 2010 4:29PM
What is the music playing in the demo?
adam greenMay 3rd 2010 12:34AM
This will just make us forget how we should properly code in HTML, especially if you're going to be using this for a long time.
You'll find that you have to go look up html syntax again if there was ever a need to modify code, including that place where you don't have access to zen coding.
Wouldn't this be true?
Kelly MiyashiroMay 3rd 2010 1:30AM
HTML/XHTML is so simple, I have no idea how you would forget how to write even the most complex XHTML/HTML.
rdfgdfgdfgMay 3rd 2010 4:17AM
Looks great. But would be MUCH cooler as an AutoHotKey script.
rupsikhaMay 13th 2010 7:55AM
how to write zen code for this...
Item 1
Item 2
rybakova_vvMay 3rd 2010 12:12PM
To use code in html being helpful to use html tutorials.
http://phpforms.net/tutorial/tutorial.html
MikeMay 3rd 2010 3:52PM
This is absolutely amazing. DLS points me to some good stuff, but this... I think I'm gonna wonder how I lived without it.
RyanMay 3rd 2010 8:38PM
In the illustration you can also type: #menu>table>tr>td*5>a.nav . By default Zen Coding will automatically assigned IDs and classes to divs. :)
a0kMay 4th 2010 4:29PM
how brilliant! very very intuitive. great video. :)
starchipMay 8th 2010 6:32PM
I am at a loss as to how, exactly, to address the several misundertandings that are being exhibited here.
However, I will do my best.
Bollocks. I have not seen such a nonesense in programming since I wrote that routine for a combined microwave/fridge. Yeah, that went well.
Now. Stop it. Just stop it, OK?
Unless you like melted ice-cream.
Mal
JonMay 9th 2010 1:14AM
When you write HTML you don't code... you write markup (Hyper-text markup language) code and markup are two VERY different things. Otherwise Zen looks pretty cool, I'm a bit of a minimalist though.
NYinkerMay 11th 2010 5:49AM
Ok guys, don't shut at me but what is the editor he's using in that video ?? Looks worth checking out :)
TechgyoMay 27th 2010 4:23AM
Hmmm, its goa help me. Thanks for the post.
http://www.techgyo.com/
MarceloJun 11th 2010 6:20PM
Wow, a really helpful tool. I downloaded the notepad++ plugin, and it cut my development time.
Thanks for the tip
jamieJun 26th 2010 1:47PM
Have not been able to get this working in Coda.
v.6.0.1 does not seem to be compatible with the latest version of Coda, v1.6.12
What a shame.