Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e18faff420
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (44 sloc) 2.772 kb

Zen Coding for Gedit

A new way of writing HTML and CSS code for Gedit.

Information

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.

This is a Gedit plugin that partially integrates Zen Coding into Gedit.

Features

Zen Coding isn't only a decent abbreviations expander, but also a set of handy tools for common XHTML tasks. Read this page carefully to boost your productivity even more. Note that almost every action highly depends on current caret position inside text editor.

  • Expand abbreviation with Ctrl+E
  • Wrap with abbreviation with Ctrl+Shift+E (needs gcocoadialog, see Installation and Credits)
  • Balance tag inward or outward with Ctrl+Alt+I or Ctrl+Alt+O
  • Merge lines with Ctrl+Alt+M
  • Go to previous or next edit point with Alt+Left and Alt+Right
  • Update tag image size with Ctrl+Alt+S (needs ImageMagick, see Installation and Credits)
  • Remove tag with Ctrl+Alt+R
  • Split or join lines with Ctrl+Alt+J
  • Toggle comment with Ctrl+Alt+C

Menu entries are also available in the Edit menu. Shortcuts can be changed in ~/.gnome2/gedit/plugins/zencoding/plugin.py to fit your needs.

Installation

  1. Download source
  2. Unpack the zencoding-gedit.plugin file and the zencoding directory into ~/.gnome2/gedit/plugins/.
  3. In order to use "Wrap with abbreviation", install gcocoadialog using these instructions.
  4. In order to use "Update tag image size", install imagemagick using your distribution's package manager.
  5. In Gedit, go to Edit -> Preferences -> Plugins to find and enable the plugin.
  6. Try it out!

Credits

Jump to Line
Something went wrong with that request. Please try again.