Skip to content

Instantly share code, notes, and snippets.

@suhajdab
Created January 18, 2011 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhajdab/784418 to your computer and use it in GitHub Desktop.
Save suhajdab/784418 to your computer and use it in GitHub Desktop.
By default TextMate inserts a quicktime object when you drag a video file onto an html page. This is a simple html5 replacement. Simply open the Bundle Editor and find 'Insert QuickTime Movie' under HTML and replace the text in the command(s).
video="$TM_DROPPED_FILE"
echo -n "<video controls="controls" src="\"$video\" "></video>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment