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

216. Thanks for all the fish
This week on Boagworld: Chris Coyier talks CSS and more, we say goodbye to the boagworld podcast and ask what can you listen to now?
215. Web Directions
This week on Boagworld: Emerging trends at Web Direction @Media, playful web design and death to design by committee.
214. When to hire a web designer
This week on Boagworld: When to hire a web agency, user testing on disposable websites and a need for speed.
213. Getting all emotional
This week on Boagworld: Stephen Anderson on emotional design, I review the iPad and we talk fonts, flash and fotos.
212. More skills to learn
This week on Boagworld: 5 new skills every web designer needs to know and how to be inspired while maintaining focus.

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.

Post to Twitter Post to Delicious

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.

You can now download my video presentation of 40 better ways to work with clients for only £9.25.