Created
September 12, 2013 06:54
-
-
Save brandonpittman/6533785 to your computer and use it in GitHub Desktop.
Create a Ruby script or set source language to Ruby in BBEdit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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