A very cool feature of the GNOME editor: GEdit is the plugin that offer to simplify your life: Snippets.
It’s very cool when your are coding in a language like Ruby (for
example) and you’re always missing the end
. Give it a
try and type def
then tab.
def method_name end
Enter the method name and then type tab. You’re in the body of the def statement. Very pleasant.
Let’s enhance this plugin by adding our own rules, for HTML this time. Open the snipplets preference panel in: Tools > Manage snippets. Insert this line into HTML for the img tag:
<img src="${1}" alt="${2: }" /> $0
Now type img
then tab for entering the src, tab for the alternative text and tab to pass thru. Nice, isn’t it? Here is a
screencast
via Tainted Words.