Zen Coding is powerful abbreviation engine which allows you to expand expressions into HTML code. The hint of zen coding is using css selectors to generate code which is pretty cool like access the dom elements.
For example
1
| |
can be expanded into:
1 2 3 4 5 6 7 8 9 10 | |
Useful Links over Zen Coding
- Homepage : https://github.com/sergeche/zen-coding
- Download Link : http://github.com/mikecrittenden/zen-coding-gedit
- Demo Videos : http://vimeo.com/7405114
- Examples : http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/
- Features : http://code.google.com/p/zen-coding/wiki/Actions
Install Zen Coding at gedit
- Download http://github.com/mikecrittenden/zen-coding-gedit/zipball/master source and unpack it.
- Move `zencoding.gedit-plugin` and the `zencoding` folder into `~/.gnome2/gedit/plugins/`
- In Gedit, go to Edit → Preferences → Plugins to enable the plugin.
- Try it out using the shortcut keys listed below.
Shortcuts
- Expand abbreviation with
Ctrl+E - Expand abbreviation as you type with
Ctrl+Alt+E - Wrap with abbreviation with
Ctrl+Shift+E - Balance tag inward or outward with
Ctrl+Alt+IorCtrl+Alt+O - Merge lines with
Ctrl+Alt+M - Go to previous or next edit point with
Alt+LeftandAlt+Right - Remove tag with
Ctrl+Alt+R - Split or join tags with
Ctrl+Alt+J - Toggle comment with
Ctrl+Alt+C
Best Regards.