The outline view is activated by typing the outline command:
The functions names are clickable and move the cursor to the line where the function is defined.
Syntax errors are displayed as short info on the bottom of the screen:
It might be possible to underline the relevant code, but I need to dive deeper into bespin to do this (plus get more info out of the JS parser).
While working on the code I made some discoveries about Gears and Web Workers:
- Apparently you are not allowed to define a constant called Block inside a Gears worker
- Safari 4 currently does not support any way to load source code into a worker (both importScripts and XMLHttpRequest are not implemented). For now I pasted all source into a bootstrap-script. Another possible solution would be to send a message to the main page asking it to make the http request and send back the result.
- I removed the ugly hack to send source to the worker inside the hash part of the url and instead send the source to the worker via postMessage immediately after loading.