Skip to content

Instantly share code, notes, and snippets.

@stedman
Created June 28, 2011 03:05
Show Gist options
  • Save stedman/1050399 to your computer and use it in GitHub Desktop.
Save stedman/1050399 to your computer and use it in GitHub Desktop.
An improved TextMate hyperlink helper script for HTML that uses title for input if need be.
{ shellVariables = (
{ name = 'TM_LINK_FORMAT';
value = '<a href="<%= e_sn url %>"<%= "\${1: title=\"\${2:#{e_sn title}}\"}" if defined? title unless input.empty? %>>${3:<%= input.empty? ? "#{e_sn title}" : "#{e_sn input}" %>}</a>';
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment