Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
Created September 12, 2013 06:54
Show Gist options
  • Save brandonpittman/6533785 to your computer and use it in GitHub Desktop.
Save brandonpittman/6533785 to your computer and use it in GitHub Desktop.
Create a Ruby script or set source language to Ruby in BBEdit.
tell application "BBEdit"
if not (front text document exists) then make new text document
if contents of front text document is "" then set contents of front text document to "#!/usr/bin/env ruby\n\n"
set source language of text document 1 to "Ruby"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment