Permalink
Browse files

Adds Renamed NTSF Safe Files

  • Loading branch information...
1 parent 8b4ca50 commit 68b182c7db36861480ce251cb041d99ddd149a6a Pedro Correia committed Dec 15, 2011
Showing with 3,175 additions and 0 deletions.
  1. +53 −0 Commands/Convert Character - Selection to Entities Excl_ Tags.tmCommand
  2. +40 −0 Commands/Convert Character - Selection to Entities.tmCommand
  3. +41 −0 Commands/Decode Entities in Line - Selection.tmCommand
  4. +37 −0 Commands/Encrypt Line - Selection (ROT 13).tmCommand
  5. +48 −0 Commands/Insert Entity.tmCommand
  6. +60 −0 Commands/Insert Open-Close Tag (With Current Word).tmCommand
  7. +27 −0 Commands/Strip HTML Tags from Document - Selection.tmCommand
  8. +29 −0 Commands/URL Escape Line - Selection.tmCommand
  9. +27 −0 Commands/URL Unescape Line - Selection.tmCommand
  10. +24 −0 Commands/Wrap Each Selected Line in Open-Close Tag.tmCommand
  11. +33 −0 DragCommands/(a) drag 'n drop.tmDragCommand
  12. +28 −0 DragCommands/(img) drag 'n drop.tmDragCommand
  13. +20 −0 DragCommands/(link rel=stylesheet) drag 'n drop.tmDragCommand
  14. +22 −0 DragCommands/(script) drag 'n drop.tmDragCommand
  15. +17 −0 Preferences/Symbol List - ID.tmPreferences
  16. +26 −0 Preferences/Typing Pairs - Empty Tag.tmPreferences
  17. +17 −0 Snippets/(!DOCTYPE HTML).tmSnippet
  18. +16 −0 Snippets/(a) mailto.tmSnippet
  19. +16 −0 Snippets/(a).tmSnippet
  20. +16 −0 Snippets/(abbr).tmSnippet
  21. +18 −0 Snippets/(address).tmSnippet
  22. +16 −0 Snippets/(area).tmSnippet
  23. +18 −0 Snippets/(article).tmSnippet
  24. +18 −0 Snippets/(aside).tmSnippet
  25. +25 −0 Snippets/(audio) w - legacy (object).tmSnippet
  26. +16 −0 Snippets/(audio).tmSnippet
  27. +16 −0 Snippets/(b).tmSnippet
  28. +16 −0 Snippets/(base).tmSnippet
  29. +16 −0 Snippets/(bdo).tmSnippet
  30. +18 −0 Snippets/(blockquote).tmSnippet
  31. +18 −0 Snippets/(body).tmSnippet
  32. +16 −0 Snippets/(br).tmSnippet
  33. +16 −0 Snippets/(button).tmSnippet
  34. +18 −0 Snippets/(canvas).tmSnippet
  35. +16 −0 Snippets/(caption).tmSnippet
  36. +16 −0 Snippets/(cite).tmSnippet
  37. +16 −0 Snippets/(code).tmSnippet
  38. +16 −0 Snippets/(col).tmSnippet
  39. +16 −0 Snippets/(colgroup).tmSnippet
  40. +16 −0 Snippets/(command).tmSnippet
  41. +16 −0 Snippets/(data).tmSnippet
  42. +20 −0 Snippets/(datalist).tmSnippet
  43. +16 −0 Snippets/(dd).tmSnippet
  44. +16 −0 Snippets/(del).tmSnippet
  45. +19 −0 Snippets/(details).tmSnippet
  46. +16 −0 Snippets/(dfn).tmSnippet
  47. +18 −0 Snippets/(div).tmSnippet
  48. +19 −0 Snippets/(dl).tmSnippet
  49. +16 −0 Snippets/(dt).tmSnippet
  50. +16 −0 Snippets/(em).tmSnippet
  51. +16 −0 Snippets/(embed).tmSnippet
  52. +20 −0 Snippets/(fieldset).tmSnippet
  53. +16 −0 Snippets/(figcaption).tmSnippet
  54. +19 −0 Snippets/(figure).tmSnippet
  55. +18 −0 Snippets/(footer).tmSnippet
  56. +19 −0 Snippets/(form).tmSnippet
  57. +16 −0 Snippets/(h1___6).tmSnippet
  58. +20 −0 Snippets/(head).tmSnippet
  59. +18 −0 Snippets/(header).tmSnippet
  60. +18 −0 Snippets/(hgroup).tmSnippet
  61. +16 −0 Snippets/(hr).tmSnippet
  62. +18 −0 Snippets/(html).tmSnippet
  63. +16 −0 Snippets/(i).tmSnippet
  64. +16 −0 Snippets/(iframe).tmSnippet
  65. +16 −0 Snippets/(img).tmSnippet
  66. +16 −0 Snippets/(input type=button).tmSnippet
  67. +16 −0 Snippets/(input type=checkbox).tmSnippet
  68. +16 −0 Snippets/(input type=color).tmSnippet
  69. +16 −0 Snippets/(input type=date).tmSnippet
  70. +16 −0 Snippets/(input type=datetime -local).tmSnippet
  71. +16 −0 Snippets/(input type=datetime).tmSnippet
  72. +16 −0 Snippets/(input type=email).tmSnippet
  73. +16 −0 Snippets/(input type=file).tmSnippet
  74. +16 −0 Snippets/(input type=hidden).tmSnippet
  75. +16 −0 Snippets/(input type=image).tmSnippet
  76. +16 −0 Snippets/(input type=month).tmSnippet
  77. +16 −0 Snippets/(input type=number).tmSnippet
  78. +16 −0 Snippets/(input type=password).tmSnippet
  79. +16 −0 Snippets/(input type=radio).tmSnippet
  80. +16 −0 Snippets/(input type=range).tmSnippet
  81. +16 −0 Snippets/(input type=reset).tmSnippet
  82. +16 −0 Snippets/(input type=search).tmSnippet
  83. +16 −0 Snippets/(input type=submit).tmSnippet
  84. +16 −0 Snippets/(input type=tel).tmSnippet
  85. +16 −0 Snippets/(input type=text).tmSnippet
  86. +16 −0 Snippets/(input type=time).tmSnippet
  87. +16 −0 Snippets/(input type=url).tmSnippet
  88. +16 −0 Snippets/(input type=week).tmSnippet
  89. +16 −0 Snippets/(ins).tmSnippet
  90. +16 −0 Snippets/(kbd).tmSnippet
  91. +16 −0 Snippets/(keygen).tmSnippet
  92. +18 −0 Snippets/(label) with (input).tmSnippet
  93. +18 −0 Snippets/(label).tmSnippet
  94. +16 −0 Snippets/(legend).tmSnippet
  95. +16 −0 Snippets/(li).tmSnippet
  96. +16 −0 Snippets/(link rel=alternate).tmSnippet
  97. +16 −0 Snippets/(link rel=author).tmSnippet
  98. +16 −0 Snippets/(link rel=icon).tmSnippet
  99. +16 −0 Snippets/(link rel=license).tmSnippet
  100. +16 −0 Snippets/(link rel=next).tmSnippet
  101. +16 −0 Snippets/(link rel=prefetch).tmSnippet
  102. +16 −0 Snippets/(link rel=prev).tmSnippet
  103. +16 −0 Snippets/(link rel=search).tmSnippet
  104. +16 −0 Snippets/(link rel=stylesheet).tmSnippet
  105. +18 −0 Snippets/(map).tmSnippet
  106. +16 −0 Snippets/(mark).tmSnippet
  107. +18 −0 Snippets/(menu).tmSnippet
  108. +16 −0 Snippets/(meta charset).tmSnippet
  109. +16 −0 Snippets/(meta name content).tmSnippet
  110. +16 −0 Snippets/(meter).tmSnippet
  111. +18 −0 Snippets/(nav).tmSnippet
  112. +20 −0 Snippets/(object).tmSnippet
  113. +18 −0 Snippets/(ol).tmSnippet
  114. +20 −0 Snippets/(optgroup).tmSnippet
  115. +18 −0 Snippets/(option).tmSnippet
  116. +16 −0 Snippets/(output).tmSnippet
  117. +18 −0 Snippets/(p).tmSnippet
  118. +16 −0 Snippets/(param).tmSnippet
  119. +18 −0 Snippets/(pre).tmSnippet
  120. +16 −0 Snippets/(progress).tmSnippet
  121. +16 −0 Snippets/(q).tmSnippet
  122. +16 −0 Snippets/(rp).tmSnippet
  123. +16 −0 Snippets/(rt).tmSnippet
  124. +18 −0 Snippets/(ruby).tmSnippet
  125. +16 −0 Snippets/(samp).tmSnippet
  126. +16 −0 Snippets/(script).tmSnippet
  127. +18 −0 Snippets/(section).tmSnippet
  128. +20 −0 Snippets/(select).tmSnippet
  129. +16 −0 Snippets/(small).tmSnippet
  130. +16 −0 Snippets/(source).tmSnippet
  131. +16 −0 Snippets/(span).tmSnippet
  132. +16 −0 Snippets/(strong).tmSnippet
  133. +18 −0 Snippets/(style).tmSnippet
  134. +16 −0 Snippets/(sub).tmSnippet
  135. +16 −0 Snippets/(summary).tmSnippet
  136. +16 −0 Snippets/(sup).tmSnippet
  137. +28 −0 Snippets/(table).tmSnippet
  138. +18 −0 Snippets/(tbody).tmSnippet
  139. +16 −0 Snippets/(td).tmSnippet
  140. +16 −0 Snippets/(textarea).tmSnippet
  141. +18 −0 Snippets/(tfoot).tmSnippet
  142. +16 −0 Snippets/(th).tmSnippet
  143. +18 −0 Snippets/(thead).tmSnippet
  144. +16 −0 Snippets/(title).tmSnippet
  145. +16 −0 Snippets/(tr).tmSnippet
  146. +18 −0 Snippets/(ul).tmSnippet
  147. +16 −0 Snippets/(var).tmSnippet
  148. +25 −0 Snippets/(video) w - legacy (object).tmSnippet
  149. +16 −0 Snippets/(video).tmSnippet
  150. +18 −0 Snippets/Comment - Section.tmSnippet
  151. +17 −0 Snippets/Comment - Simple.tmSnippet
  152. +16 −0 Snippets/Google AJAX Libraries - Chrome Frame.tmSnippet
  153. +17 −0 Snippets/Google AJAX Libraries - Dojo.tmSnippet
  154. +16 −0 Snippets/Google AJAX Libraries - Ext Core.tmSnippet
  155. +17 −0 Snippets/Google AJAX Libraries - MooTools.tmSnippet
  156. +16 −0 Snippets/Google AJAX Libraries - Prototype.tmSnippet
  157. +16 −0 Snippets/Google AJAX Libraries - SWFObject.tmSnippet
  158. +16 −0 Snippets/Google AJAX Libraries - WebFont Loader.tmSnippet
  159. +17 −0 Snippets/Google AJAX Libraries - YUI!.tmSnippet
  160. +17 −0 Snippets/Google AJAX Libraries - jQuery UI.tmSnippet
  161. +17 −0 Snippets/Google AJAX Libraries - jQuery.tmSnippet
  162. +16 −0 Snippets/Google AJAX Libraries - script_aculo_us.tmSnippet
  163. +16 −0 Snippets/IE Conditional Comment - HTML 5 Shim.tmSnippet
  164. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 5_0 only.tmSnippet
  165. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 5_5 only.tmSnippet
  166. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 5_x.tmSnippet
  167. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 6 and below.tmSnippet
  168. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 6 only.tmSnippet
  169. +16 −0 Snippets/IE Conditional Comment - Internet Explorer 7 and above.tmSnippet
  170. +16 −0 Snippets/IE Conditional Comment - Internet Explorer.tmSnippet
  171. +16 −0 Snippets/IE Conditional Comment - NOT Internet Explorer.tmSnippet
  172. +18 −0 Snippets/Special - Return Inside Empty Open-Close Tags.tmSnippet
  173. +16 −0 Snippets/Wrap Selection in Open - Close Tag.tmSnippet
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+$KCODE = 'U'
+
+$char_to_entity = { }
+File.open("#{ENV['TM_BUNDLE_SUPPORT']}/entities.txt").read.scan(/^(\d+)\t(.+)$/) do |key, value|
+ $char_to_entity[[key.to_i].pack('U')] = value
+end
+
+def encode (text)
+ text.gsub(/[^\x00-\x7F]|["'&lt;&gt;&amp;]/) do |ch|
+ ent = $char_to_entity[ch]
+ ent ? "&amp;#{ent};" : sprintf("&amp;#x%02X;", ch.unpack("U")[0])
+ end
+end
+
+STDIN.read.scan(/(?x)
+
+ ( &lt;\?(?:[^?]*|\?(?!&gt;))*\?&gt;
+ | &lt;!-- (?m:.*?) --&gt;
+ | &lt;\/? (?i:a|abbr|acronym|address|applet|area|b|base|basefont|bdo|big|blockquote|body|br|button|caption|center|cite|code|col|colgroup|dd|del|dfn|dir|div|dl|dt|em|fieldset|font|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|hr|html|i|iframe|img|input|ins|isindex|kbd|label|legend|li|link|map|menu|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var)\b
+ (?:[^&gt;"']|"[^"]*"|'[^']*')*
+ &gt;
+ | &amp;(?:[a-zA-Z0-9]+|\#[0-9]+|\#x[0-9a-fA-F]+);
+ )
+ |([^&lt;&amp;]+|[&lt;&amp;])
+
+ /x) do |tag, text|
+ print tag.to_s, encode(text.to_s)
+end
+</string>
+ <key>fallbackInput</key>
+ <string>character</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>Convert Character / Selection to Entities Excl. Tags</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>43C9E8AE-3E53-4B82-A1AF-56697BB3EF09</string>
+</dict>
+</plist>
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+$KCODE = 'U'
+
+$char_to_entity = { }
+File.open("#{ENV['TM_BUNDLE_SUPPORT']}/entities.txt").read.scan(/^(\d+)\t(.+)$/) do |key, value|
+ $char_to_entity[[key.to_i].pack('U')] = value
+end
+
+def encode (text)
+ text.gsub(/[^\x00-\x7F]|["'&lt;&gt;&amp;]/) do |ch|
+ ent = $char_to_entity[ch]
+ ent ? "&amp;#{ent};" : sprintf("&amp;#x%02X;", ch.unpack("U")[0])
+ end
+end
+
+print encode(STDIN.read)
+</string>
+ <key>fallbackInput</key>
+ <string>character</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>Convert Character / Selection to Entities</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>3DD8406C-A116-11D9-A5A2-000D93C8BE28</string>
+</dict>
+</plist>
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+$KCODE = 'U'
+
+$entity_to_char = { }
+File.open("#{ENV['TM_BUNDLE_SUPPORT']}/entities.txt").read.scan(/^(\d+)\t(.+)$/) do |key, value|
+ $entity_to_char[value] = [key.to_i].pack('U')
+end
+
+res = STDIN.read.gsub(/&amp;(?:([a-z0-9]+)|#([0-9]+)|#x([0-9A-F]+));/i) do |m|
+ if $1 then
+ $entity_to_char[$1] || m
+ else
+ [$2 ? $2.to_i : $3.hex].pack("U")
+ end
+end
+
+print res
+</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>Decode Entities in Line / Selection</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>C183920D-A126-11D9-A5A2-000D93C8BE28</string>
+</dict>
+</plist>
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+
+def e_js(str)
+ str.gsub(/(?=[\\"])/, '\\').gsub(/\n/, '\n').gsub(/[@.\/]/) { |ch| sprintf('\\%03o', ch[0]) }
+end
+
+def rot_13(str)
+ str.tr('A-Za-z', 'N-ZA-Mn-za-m')
+end
+
+print %{&lt;script type="text/javascript"&gt;document.write(
+"#{e_js(rot_13(STDIN.read))}".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c&lt;="Z"?90:122)&gt;=(c=c.charCodeAt(0)+13)?c:c-26);}));
+&lt;/script&gt;}
+</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>Encrypt Line / Selection (ROT 13)</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>9B13543F-8356-443C-B6E7-D9259B604927</string>
+</dict>
+</plist>
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby -w
+SUPPORT = ENV['TM_SUPPORT_PATH']
+DIALOG = SUPPORT + '/bin/tm_dialog'
+
+require "#{SUPPORT}/lib/osx/plist"
+require "#{SUPPORT}/lib/escape"
+
+entities = [ ]
+File.read("#{ENV['TM_BUNDLE_SUPPORT']}/entities.txt").scan(/^(\d+)\t(.+)$/) do |key, value|
+ char = [key.to_i].pack('U')
+ entities &lt;&lt; { 'display' =&gt; "#{value} (#{char})", 'char' =&gt; char, 'entity' =&gt; value }
+end
+
+plist = { 'entities' =&gt; entities, 'insertAsEntity' =&gt; true }.to_plist
+open("|#{e_sh DIALOG} -cm 'Insert Entity'", 'w+') do |io|
+ io &lt;&lt; plist; io.close_write
+
+ res = OSX::PropertyList.load(io.read)['result']
+ abort if res.nil?
+
+ if res['asEntity'].to_i == 1
+ print '&amp;' + res['returnArgument'].first['entity'] + ';'
+ else
+ print res['returnArgument'].first['char']
+ end
+end
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>Insert Entity…</string>
+ <key>output</key>
+ <string>afterSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>89E5CC0A-3EFF-4DEF-A299-2E9651DE6529</string>
+</dict>
+</plist>
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+#
+# This script will expand the current word into: &lt;word&gt;&lt;/word&gt;
+# It will recognize HTML 4.0 tags that need no close tag.
+#
+# With no current word, it will insert: &lt;p&gt;&lt;/p&gt; and allows you
+# to overwrite the tag name and add potential arguments.
+#
+# The result is inserted as a snippet, so it's
+# possible to tab through the place holders.
+
+# single tags
+single_no_arg = /^(?:br|hr)$/i
+single = /^(?:img|meta|link|input|base|area|col|frame|param)$/i
+
+# we are not in HTML mode, so let’s scrap the above hardcoded tag lists
+unless ENV.has_key? 'TM_HTML_EMPTY_TAGS' then
+ single_no_arg = /(?=not)possible/
+ single = /(?=not)possible/
+end
+
+# handle the case where caret is in the middle of a word, assume only the left part is the tag
+index = ENV['TM_LINE_INDEX'].to_i - ENV['TM_INPUT_START_LINE_INDEX'].to_i
+tag, suffix = STDIN.read, ''
+if index &lt; tag.length &amp;&amp; !ENV['TM_SELECTED_TEXT']
+ tag, suffix = tag[0...index], tag[index..-1]
+end
+
+xhtml = ENV['TM_XHTML'].to_s
+
+print case tag
+ when single_no_arg then "&lt;#{tag}#{xhtml}&gt;"
+ when single then "&lt;#{tag} $1#{xhtml}&gt;"
+ when '' then "&lt;${1:#{ENV['TM_DEFAULT_TAG'] || 'p'}}&gt;$2&lt;/${1/\\s.*//}&gt;"
+ else "&lt;#{tag}&gt;$1&lt;/#{tag.strip[/^\S+/]}&gt;"
+end
+
+print suffix
+</string>
+ <key>fallbackInput</key>
+ <string>word</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>$</string>
+ <key>name</key>
+ <string>Insert Open/Close Tag (With Current Word)</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>uuid</key>
+ <string>2ED44A32-C353-447F-BAE4-E3522DB6944D</string>
+</dict>
+</plist>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>## Strip HTML and PHP tags from the selected text
+php -r 'echo strip_tags( file_get_contents("/dev/stdin") );'
+
+### If you want to keep a particular tag, such as &lt;p&gt; comment the above line and uncomment the next line
+# php -r 'echo strip_tags( file_get_contents("/dev/stdin"), "&lt;p&gt;" );'
+### end</string>
+ <key>fallbackInput</key>
+ <string>document</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Strip HTML Tags from Document / Selection</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>20D760B5-A127-11D9-A5A2-000D93C8BE28</string>
+</dict>
+</plist>
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+
+print STDIN.read.gsub(/([^a-zA-Z0-9_.-]+)/n) {
+ '%' + $1.unpack('H2' * $1.size).join('%').upcase
+}
+</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>URL Escape Line / Selection</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>6B024865-6095-4CE3-8EDD-DC6F2230C2FF</string>
+</dict>
+</plist>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>#!/usr/bin/env ruby
+require 'cgi'
+print CGI.unescape(STDIN.read)
+</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@&amp;</string>
+ <key>name</key>
+ <string>URL Unescape Line / Selection</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>2C4C9673-B166-432A-8938-75A5CA622481</string>
+</dict>
+</plist>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>perl -pe 's/[\$`\\]/\\$&amp;/g; s/([ \t]*)(.+)/$1&lt;\${1:li}&gt;$2&lt;\/\${1\/\\s.*\/\/}&gt;/'</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>^@W</string>
+ <key>name</key>
+ <string>Wrap Each Selected Line in Open/Close Tag</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>text.html</string>
+ <key>uuid</key>
+ <string>991E7EBD-F3F5-469A-BA01-DC30E04AD472</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit 68b182c

Please sign in to comment.