Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add TextMate preview html style. #76

Open
wants to merge 1 commit into from

1 participant

@huacnlee

Sorry, last commit can not be run, use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 21, 2011
  1. @huacnlee
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 Commands/Compile and Display JS.tmCommand
View
7 Commands/Compile and Display JS.tmCommand
@@ -7,6 +7,13 @@
<key>command</key>
<string>#!/bin/bash
+. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+html_header "CoffeeScript Compile and Display JS" "${TM_FILENAME:-}"
+
+if [[ -f "$TM_FILEPATH" ]]; then
+ echo "&lt;base href='tm-file://${TM_FILEPATH// /%20}'&gt;"
+fi
+
function highlight {
test `which pygmentize`
if [[ $? -eq 0 ]]; then
Something went wrong with that request. Please try again.