New methods for writing HTML and CSS

Source: Internet
Author: User

Zen CodingAn editor that simplifies the compilation of HTML, XML, XSL (or other such formats ). It mainly uses an abbreviated syntax to write a large number of repeated and tasteless HTML, much like CSS syntax. The following is an example:

div#page>div.logo+ul#navigation>li*5>a
After expansion, it will look like the following:
<div id="page">        <div></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>
It can be seen that # represents ID,> represents the next layer. If you write:
select>option#item-$*3
Then you will get:
<select><option id="item-1"></option><option id="item-2"></option><option id="item-3"></option></select>
It looks good. Currently, it supports the following Editor:

  • AptanaHowToEn
  • 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 shoshould 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
  • PS3(Windows). Scripts> Zen Coding menu item
  • <Textarea>(Browser-based). See online demo.
  • EditArea(Browser-based). See online demo.

The following third-party plug-ins are also available:

  • Dreamweaver(Windows, Mac)
  • Sublime Text(Windows)
  • UltraEdit(Windows)
  • TopStyle(Windows)
  • GEdit(Crossplatform)-Franck Marcia's plugin, Mike Crittenden's plugin
  • BBEdit/TextWrangler(Mac)-external download
  • Visual Studio(Windows)-external download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.