zen-coding

Das Textemate Plugin zen-coding erlaubt es z.B. CSS Selectoren zu schreiben und expandiert die dann in HTML Code, z.B.

table>tr>td wird:

<table>
<tr>
 <td></td>
</tr>
</table>

Noch etwas kürzer geht es so: table+

<table>
<tr>
 <td></td>
</tr>
</table>

Mit der erweiterten Syntax kann man dann sowas machen: select>option#item-$*3

<select>
 <option id="item-1"></option>
 <option id="item-2"></option>
 <option id="item-3"></option>
</select>

Sehr cool!

Possibly related posts (automatically generated)