Created
June 28, 2011 03:05
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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