Files
atom/bundles/CoffeeScriptBundle.tmbundle/Commands/Run.tmCommand
Corey Johnson & Nathan Sobo f84f9c5dd2 Add bundles and themes
2012-08-27 13:20:22 -07:00

33 lines
819 B
Plaintext

<?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>#!/bin/bash
function pre {
echo -n '&lt;pre style="word-wrap: break-word;"&gt;'
perl -pe '$| = 1; s/&amp;/&amp;amp;/g; s/&lt;/&amp;lt;/g; s/&gt;/&amp;gt;/g; s/$\\n/&lt;br&gt;/'
echo '&lt;/pre&gt;'
}
${TM_COFFEE:=coffee} -s | pre
</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Run</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
<string>source.coffee</string>
<key>uuid</key>
<string>30395DAB-44A6-44F7-99E1-02D64621303A</string>
</dict>
</plist>