I can only work with D11 using BBEdit.
The script editor is simply put unusable to do real work.
If you are on mac you may also want to look at my HandlerMenu tool miaw, which allows to open and edit scripts in BBEdit and have the changes brought back to director when done.
here is the relevant paragraph for editing in BBEdit:
[farbflash.org]
If you create an account you can log in and browse the svn repository.
just download:
[farbflash.org]
to get the latest version.
You need, however, my shell xtra replacement for D11 until Valentin updates the shell xtra.
[farbflash.org]
I also have some more bbedit scripts and modules to work with lingo and to allow autocompletion in BBEdit.
I have packed them and will put some description and how-to later online.
Once you installed the language module, the file extension .ls will be available and thus the clippings will be available for .ls files too.
I have to confess though, that in my own version of the CLM I removed the bits to recognize functions, as that made large scripts to slow (I still don't know how to change the regexp to make that faster. it is definately the regexp with its non-catching lookAheads and lookBehinds, which makes the parsing so slow). I rather disabled it in the language module and use markers instead.
To do so open the language module "~/Library/Application Support/BBEdit/Language Modules/Lingo.plist" and uncomment:
<key>Function Pattern</key>
and the following <string> tag
(Note that the CLM in the above .cpgz archive already has this uncommented)
and then use the marker menu with the following regexp to find and mark lingo functions:
"Find & Mark all..."
search for:
(?<=\ron )([^\s]+)
Mark with:
\1\r\r
Still you can't collapse/expand handlers, but at least you have a "function menu", which is the marker menu.
Further there are three filters in "Unix filters" to add/remove lingo comments and to shift left/right lingo selected lines. I have added keyboard shortcuts for these filters. To do so go to "Window->Palettes->Unix Filters..." and use the "Set key" button.
I use "Cmd+Alt+Y" for comment/uncomment (on english keyboard layouts "Cmd+Alt+Z" is better suited)
"Cmd+Alt+Ctrl+5" for shift left
"Cmd+Alt+Ctrl+6" for shift right
Basically the comment script adds or removes the "--" at the beginning of the selected text block, like in Director and the shift left/right do the same as the standard BBEdit menu item, but use two spaces instead of one TAB in order to indent the lines in order to compensate the missing autoindent.
Further there are two applescripts in the scripts folder, which I assigned keyboardshortcuts too. These scan the current file or the current handler for words and create a temporary clipping folder, so that BBEdits autocomplete can use your custom variable names too (it is a shame, that BBEdit's autocomplete doesn't do that on its own in the first place) So you can call in the scripts menu (the one with the script icon) "Scan clippings" -> "Scan Handler Keywords" or "Scan keywords" (Please be aware, that "Scan keywords" is rather slow, if you have a huge script) and furtheron, all words of the current file appear in the autocomplete menu (go to the "Clippings" menu, the one with the "C") and choose "Insert clipping...". And yes you already guessed it, I have a keyboard shortcut for that too, I use "Ctrl+1"
I use "Ctrl+Q" for "Scan Handler Keywords"
"Ctrl+W" for "Scan Keywords"