Zen Coding — a new way of writing HTML and CSS code

zen-coding - Set of plugins for HTML and CSS hi-speed coding - Google Project Hosting

Zen Coding — a new way of writing HTML and CSS code

Follow us on Twitter @zen_coding

New version 0.7 is available (March 13, 2011), read release notes for more info.

Zen Coding is an editor plugin for high-speed HTML, XML, XSL (or any other structured code format) coding and editing. The core of this plugin is a powerful abbreviation engine which allows you to expand expressions—similar to CSS selectors—into HTML code. For example:

div#page>div.logo+ul#navigation>li*5>a

...can be expanded into:

<div id="page"><div class="logo"></div><ul id="navigation"><li><a href=""></a></li><li><a href=""></a></li><li><a href=""></a></li><li><a href=""></a></li><li><a href=""></a></li></ul>
</div>

Read more about current Zen Coding syntax

Abbreviation engine has a modular structure which allows you to expand abbreviations into different languages. Zen Coding currently supports CSS, HTML, XML/XSL and HAML languages via filters.

Current features of abbreviation engine

  • ID and CLASS attributes: div#page.section.main.
  • Custom attributes: div[title], a[title="Hello world" rel], td[colspan=2].
  • Element multiplication: li*5 will output <li> tag five times.
  • Item numbering with $ character: li.item$*3 will output <li> tag three times, replacing $ character with item number.
  • Multiple '

characters in a row are used as zero padding, i.e.: li.item$$li.item001

Abbreviation groups with unlimited nesting: div#page>(div#header>ul#nav>li*4>a)+(div#page>(h1>span)+p*2)+div#footer. You can literally write a full document markup with just a single line. Filters support div tag name can be omitted when writing element starting from ID or CLASS: #content>.section is the same as div#content>div.section. (v0.7) Text support: p>{Click }+a{here}+{ to continue}.

To better understand how Zen Coding works, watch demo video and read Smashing Magazine tutorial.

Zen Coding isn’t only a decent abbreviation engine, it also provides some very useful actions for HTML-coder’s every day needs, like: Wrap with Abbreviation, Tag Balancing, Toggle Comment, Remove Tag etc. Read more about available actions.

Officially supported editors

These plugins are developed by Zen Coding team and guarantee to have full support of all Zen Coding latest features.

  • Aptana/Zend Studio/Eclipse (crossplatform) https://github.com/sergeche/eclipse-zencoding
  • TextMate (Mac). Available in two flavors: basic snippets (Zen HTML and Zen CSS) and full-featured plugin (ZenCoding for TextMate). Bundles > Zen Coding menu item
  • Coda (Mac) — external download, via TEA for Coda. Plug-ins > TEA for Coda > Zen Coding menu item
  • Espresso (Mac) — external download, via TEA for Espresso. Zen Coding is bundled with Espresso by default, but you should upgrade ZC to latest version. Actions > HTML menu item
  • Komodo Edit/IDE (crossplatform) — external download. Tools > Zen Coding menu item
  • Notepad++ (Windows). Zen Coding menu item Also a Python version of NPP plugin is available: http://sourceforge.net/projects/npppythonscript/files/
  • PSPad (Windows). Scripts > Zen Coding menu item
  • <textarea> (browser-based). See online demo.
  • editArea (browser-based). See online demo.
  • CodeMirror (browser-based). See online demo.

Third-party supported editors

These plugins are using official Zen Coding engine and developed by third-party developers. Thus, no guarantee that they support all latest ZC features.

  • Dreamweaver (Windows, Mac)
  • Sublime Text (Windows)
  • Sublime Text 2 (crossplatform) — external download
  • UltraEdit (Windows)
  • TopStyle (Windows)
  • GEdit (crossplatform) — Franck Marcia's plugin, Mike Crittenden's plugin
  • BBEdit/TextWrangler (Mac) — external download
  • Visual Studio (Windows) — at Visual Studio Gallery
  • EmEditor (Windows) — external download
  • Sakura Editor (Windows) — external download
  • NetBeans (crossplatform) — download
  • Chrome Extension — external download
  • Userscript for Greasemonkey — external download
  • Geany — external download
  • RJ TextEd — built in since v7.50
  • AkelPad — external download
  • WIODE web-based IDE
  • BlueFish — built-in in v2.2.1

Unofficial implementations

These plugins are developed by third-party and has their own ZC engine implementation, which leads to different feature set and abbreviation syntax. Zen Coding team has no relation to this projects.

  • IntelliJ IDEA/WebStorm/PHPStorm (crossplatform) — built-in in latest versions
  • Emacs (crossplatform) — external download
  • Vim (crossplatform) — Sparkup, Zen Coding for Vim
  • ReSharper plugin for Visual Studio
posted on 2012-03-16 14:04 lexus 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/03/16/2400191.html

Zen Coding — a new way of writing HTML and CSS code相关推荐

  1. Zen Coding Visual Studio plugin 配置

    昨天在新闻频道看到 编程之禅:Zen Coding  很有意思   改变书写Html的方式  就像Jquery与Javascript一样,Zen Coding 项目托管在 google code 上面 ...

  2. notepad快速编写html,notepad 结合Zen Coding快速编写HTML代码 | css3教程

    经朋友介绍认识了Zen Coding一款快速编写HTML代码的插件,然后在google搜索一下其使用,让在下激动不以,今天特意写了一篇blog来跟大家一起分享. Zen Coding其实是一款快速编写 ...

  3. 在Aptana下安装Zen coding

    Zen coding无疑是一款高效开发的插件,适用于多平台,支持非常多的IDE.由于最近要写一些HTML和一些CSS,听别人说写这些用Aptana就最好了.于是也捣鼓了一下,顺便把安装过程给记录下来. ...

  4. 在dw下安装zen coding,并对其快捷键进行修改

    在dw安装zen coding并没有什么出奇地方,及特别的技术含量.但是以现下的国情,确实实现起来步步困难. 当然在开始之前先推荐一下,神采飞扬兄的这篇文章. http://www.qianduan. ...

  5. Zen Coding css,html缩写替换大观 快速写出html,css

    阅读本文,先仔细阅读网站文章. Zen Coding 快速编写HTML/CSS代码的实现 复制代码 代码如下: E 元素名称(div, p); E#id 使用id的元素(div#content, p# ...

  6. Zen Coding 系列教程一:入门

    Zen Coding 是一款高效用于开发HTML与CSS的编码插件,可以安装到很多软件中使用 Zen Coding 项目:http://code.google.com/p/zen-coding/    ...

  7. 给Sublime text2安装Zen Coding插件

    转载自:http://m.blog.csdn.net/blog/u013867072/38714069 原文内容://----------------------------------------- ...

  8. Web开发人员的必备工具 - Emmet (Zen Coding)

    日期:2012-11-6  来源:GBin1.com 如果你从事前端开发或者web开发的话,一定听说过Zen coding - 一种快速编写HTML/CSS代码的方法.它使用仿CSS选择器的语法来快速 ...

  9. notepad++配置Zen Coding

    2019独角兽企业重金招聘Python工程师标准>>> Notepad++ 是一款无比轻巧便捷的代码编辑工具.它无可挑剔的启动速度,优秀的语法高亮,干净整齐的代码缩进,便捷的括号高亮 ...

最新文章

  1. 一举拿下高可用与分布式协调系统设计!
  2. CES 2020前瞻:一份最全的趋势预测报告
  3. 代码和产品发布的几种方式
  4. iperf3 测速跑不满的解决办法
  5. BZOJ-1880-Elaxia的路线-SDOI2009-SPFA+拓扑排序
  6. Django使用Mysql时数据库配置
  7. css --- 使用媒体查询当屏幕宽度小于某个值时,隐藏掉某个类
  8. 数据装载服务器_操作事项_06
  9. Shiro的架构介绍
  10. Linux查找大文件 (find的用法)
  11. 【报告分享】2019Z世代消费力洞察报告-腾讯.pdf
  12. 沫沫金::jqGrid插件-弹窗返回值
  13. Spring 通知和顾问进行增强
  14. vs2017下载教程
  15. FBX格式和obj格式的区别
  16. 跑得快,打不死!清华大学开发“小强”机器人,壮汉狂踩也挡不住前进步伐
  17. 计算机网络>速率、带宽、吞吐量
  18. Mybatis plus 修改密码
  19. You should consider either expiring and/or testing connection validity before use in your applicat
  20. js bookmark doubanfm lyrics

热门文章

  1. 2021年茶艺师(初级)考试及茶艺师(初级)考试技巧
  2. 单片机c语言程序开发洗衣机,单片机课程设计(洗衣机控制系统).doc
  3. Android开发之通知栏Notification详解
  4. Adobe XD 交互原型15个小技巧,一看就会
  5. psd转换html字体行高,将PSD网站模板转换为XHTML+CSS
  6. action mutation 调用_Vuex之mutation和action
  7. 基于Netty最简单的WebSocket通讯
  8. pandoc实现LaTeX转word+公式格式批量转换
  9. leetcode系列-102.二叉树的层序遍历
  10. leetcode系列-199.二叉树的右视图