I am new to textwrangler and I am trying to figure out how to have a shortcut for commenting out blocks of haskell code. The available Un/Comment Block option from the menu doesn't seem to do anything.
I've used Prefix/suffix lines but that is just too awkward. Does anyone have any suggestions?
Thanks
I'm assuming you're using TextWrangler on OS X.
When you're running TextWrangler you should see a little scroll in the menu bar (the AppleScript button). Click it. Then choose the 'Open Script Editor' option. Go to your Desktop folder and click 'New Document'. Name the file something like 'comment_script'. Type the following text into the editor window that appears:
Save it and quit the editor. Once you're done with that, copy the comment_script file to the folder
~/Library/Application\ Support/TextWrangler/ScriptsNow you'll find
comment_scriptin the script menu (the one with the scroll). Select some text in TextWrangler and then click oncomment_scriptin the script menu to comment the selection.