-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathCSS Link.plist
31 lines (30 loc) · 1.09 KB
/
CSS Link.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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>command</key>
<string>#!/usr/bin/env ruby20
if ENV['TM_DROPPED_FILE'] =~ /print[^\/]*\.css$/
print "<link rel=\"stylesheet\" href=\"#{ENV['TM_DROPPED_FILE']}\" media=\"print\"$TM_XHTML>"
elsif ENV['TM_DROPPED_FILE'] =~ /(aural|speech)[^\/]*\.css$/
print "<link rel=\"stylesheet\" href=\"#{ENV['TM_DROPPED_FILE']}\" media=\"speech\"$TM_XHTML>"
elsif ENV['TM_DROPPED_FILE'] =~ /screen[^\/]*\.css$/
print "<link rel=\"stylesheet\" href=\"#{ENV['TM_DROPPED_FILE']}\" media=\"screen\"$TM_XHTML>"
else
print "<link rel=\"stylesheet\" href=\"#{ENV['TM_DROPPED_FILE']}\"$TM_XHTML>"
end
</string>
<key>draggedFileExtensions</key>
<array>
<string>css</string>
</array>
<key>name</key>
<string>Insert CSS Link</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>text.html</string>
<key>uuid</key>
<string>C8B717C2-6B33-11D9-BB47-000D93589AF6</string>
</dict>
</plist>