Skip to content

A podcast for those who design, develop and run websites.

Boagworld is the blog of web strategist Paul Boag who lives in the heart of rural Dorset (hence the cows). He produces a weekly podcast with UX consultant Marcus Lillington on building and running websites. They also run the web design agency Headscape.

Latest Shows

203. Why your blog fails
This week on boagworld: the secret of successful blogging, will Google personalisation affect your sites ranking and how to help users too busy to read.
202. Rocket Surgery Made Easy
This week on Boagworld: Steve Krug on monthly usability, Steve Marshall talks about form design and Paul rejoices over the new era for browsers in Europe.
201. Are clients stupid?
This week on Boagworld: We review the freelancing book Noded, discover a new web tool called 'Support Details' and Paul tells us all a story.
200. A taste of the show
This week's show gives you a taste of the live 12 hour marathon that took place to celebrate the 200th Boagworld.
199. Time to generalise
This week on Boagworld: The changing role of web designers, Colin Firth on content and Becky Jones talks about the changes at Google.

or view all shows

Have your say

Become a part of the Boagworld community...

Reach a point of zen in your code

Posted in Boagworld Bites, Reviews on: Thursday, January 21, 2010 by Ezequiel Bruni

Zen Coding is set of plugins for various text editors that enable you to code much faster than you normally do.

My name is Ezequiel Bruni, and I’m a Canadian designer based in Mexico.

I just wanted to let you all know about a which is pretty awesome (and will make your life easier).

Zen Coding is set of plugins for various text editors that enable you to much faster than I bet you normally do.

For example, let’s say you want a div, with a heading, and three paragraphs inside. In each paragraph element, you want a span element as well. Each element needs classes and ids, you get the picture. It’s tedious, even with copy and paste.

What if I told you that you could do all of that with just one line of code? Sound interesting?

Zen coding allows you to do that, and it’s pretty darn awesome.


To see how it works, go to http://code.google.com/p/zen-coding/

Zen Coding supports:

And there is partial support for:

I’ve personally tried the Aptana , as well as the gedit plugin on Linux, and I’ve gotta say, it’s beautiful. The way I code is certain to change, and I recommend Zen Coding to anyone who does a lot of HTML/CSS .

I hope you check it out, it’s awesome.

What did you think about this post?

17 Comments

Comments are for the discussion of this post. If you have other questions / comments then post them to the forum or send me an email

  • What about Komodo Edit ? A crossplateform editor based on the Mozilla toolkit http://www.activestate.com/komodo_edit/

  • Jorge says:

    Paul, did you say CMD-Enter to expand the syntax? It’s not working for me. I’ve looked around and seen mention for CMD-d, CMD-d, and the dropdown menu under TEA says shift-, (which for me launches prefs).

    Did you have to modify the plugin?
    I’ll keep looking but maybe you can give us a hint?

  • Textpad (http://textpad.com/) support would be nice. I can’t imagine what it would be like to use this and, therefore, whether it’s a productivity enhancement or not, but it would sure be nice to try it out!

  • I’ve been using Zen Coding with TextMate for a while, and I’ve found it to be one of the best productivity gains in my toolset. If you are writing HTML get this, or use an abstraction like HAML and you’ll find yourself writing well structured code faster and easier.

  • I use Zen Coding with Espresso, didn’t know it even existed until I read the Smashing article about it!

  • Shaun says:

    Hi Paul,

    Great find! How do you do the ul>li*5 etc in TextMate?

  • Kevin Dees says:

    Thanks Ezequiel Bruni,

    I don’t know how I missed this when it come out. Glad you got this on Boagworld. Works great with Dreamweaver.

    Excellent review! Just posted on this after reading yours :D

  • Sulcalibur says:

    This is something I’m really looking into at the moment, so that you both for the extra info.

    Also you type about as good as me :P

  • Great concept. Got it right away! Beautifully executed.

    Thanks for sharing.

  • Eniak says:

    Very good tool! Use it with Dreamweaver.

  • Gonzalo González Mora says:

    I’ve been using it for a few days (since a post on NetTuts) and it’s really awesome. I’ve made some screencasts for those who had problems installing it on Aptana (you can check it on the ZenCoding wiki).

    It’s worth noting that it also works on the e texteditor (which is like TextMate for Windows). You have to download the 3 files for TextMate and install them in C:\Users\{yourusername}\Application Data\e\Bundles and you’ll be ready to go.

  • Gonzalo González Mora says:

    Oh, I forgot to say something: you can also add custom snippets. In the NetTuts post, for example, Sergey (the creator of ZenCoding) showed how to add a “lorem” snippet so that it will add the dummy text (which you can use for something like div#container>div#content>p>lorem or something like that). He shows how to do it on Coda I think, but you can edit the settings file on most (if not all) editors. In my previous like you’ll find how to do it on Aptana. On Dreamweaver CS4 (in Windows), the file is located in: C:\Users\{username}\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\Commands\ZenCoding\zen_settings.js

  • Wow, that looks pretty insane!
    I’ll definitely be checking this one out..
    Cheers to Ezequiel for taking the time to tell us all about it!

Leave a comment

Additional Information

Produced by Headscape

Boagworld is produced by the web design agency Headscape founded by Marcus, Paul and Chris Scott. Headscape also has a number of other talented guys who blog. Check them out.

  • Craig Rowe is one of our amazing developers and writes some superb posts on everything from .net to AIR apps.

  • Ed Merritt is a Headscape designer who's blog contains examples of his work and a number of free Wordpress themes.

  • Dave McDermid is a Headscape developer who has an excellent blog. He blogs on everything from AJAX to security.

  • Rob Borley is one of our project managers and blogs regularly on client and project management issues.

  • Leigh Howells is our multimedia design guru (whatever one of those is). He blogs on a mixture of design and music.

Paul elsewhere

Paul just can't shut up. He publishes regular audioboos, has a personal blog and is addicted to twitter. He also writes and speaks regularly. Check out the most recent below: