Zen Coding simple example

编辑器 Komodo Edit 6

Zen Coding version 0.7

 

起用快捷键:

  • Balance Tag:   Ctrl + B
  • Decrement Number By 1:  Ctrl + Shift + Down
  • Increment Number By 1: Ctrl + Shift + Up
  • Expand Abbriviation: Ctrl + /
  • Wrap With Abbriviation: Ctrl + Shift + ?
  • Remove Tag: Ctrl + D
examples:

    <!--dl>(dt+dd)-->
    <dl>
        <dt></dt>
        <dd></dd>
    </dl>
    
    <!--a[href=#]{Click here}-->
    <a href="#">Click here</a>
    
    <!--p>a{here}+span{to continue}-->
    <p><a href="">here</a><span>to continue</span></p>
    
    <!--p>a{one}+em{two}-->
    <p><a href="">one</a><em>two</em></p>
    
    <!--p>a>{one}+em{two}-->
    <p><a href="">one
            <em>two</em>
        </a></p>
    
    <!--ul>li*>a{Click at $#}-->
    one
    <ul>
        <li><a href="">click at one</a></li>
    </ul>
    <!--ul>li>a{Click at $#}-->
    one
    <ul>
        <li><a href="">at one</a></li>
    </ul>
    
    <!--ul>li*3>a{Click at $#}-->
    one
    <ul>
        <li><a href="">click at one</a></li>
        <li><a href="">click at one</a></li>
        <li><a href="">click at one</a></li>
    </ul>
    
    <!--span[title=$#]{Element’s title is $#}-->
    one
    <span title="one">title is one</span>
    
    <!--span[title=$#]{Element’s title is $#}*3-->
    one
    <span title="one">title is one</span>
    <span title="one">title is one</span>
    <span title="one">title is one</span>
    
    <!--ul>li>span{$#}+{ }+a[title=$#]{$#}-->
    one
    <ul>
        <li>
            <span>one</span> 
            <a href="" title="one">one</a>
        </li>
    </ul>
    
    <!--ol>li*|t-->
    1. list item one
    2. list item two
    3. list item three
    
    <ol>
        <li>list item one</li>
        <li>list item two</li>
        <li>list item three</li>
    </ol>
    
    <!--Ctrl + D-->
    <a href="#">test</a>
    test
    
    <li>AAA</li>
    
    <!--Ctrl + Shift + Up/Down-->
    25
    
    
    
    <!--li*4>span.item$-->
    <li><span class="item1"></span></li>
    <li><span class="item2"></span></li>
    <li><span class="item3"></span></li>
    <li><span class="item4"></span></li>
    
    <!--li*4>span{title$}-->
    <li><span>title1</span></li>
    <li><span>title2</span></li>
    <li><span>title3</span></li>
    <li><span>title4</span></li>
    
    
    
 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值