@unknownuser said:
you must disable the load button until you finish the eval of the code as SU Ruby is not reentrant
export html I think is for exporting the code highlighting and encode/decode for script encryption
I also did something similar for SU5, before WebDialogs, with tab completion and aliases. if you want I can share the source as I dont have time to finish it
I don't think there is a need to disable the Load button, because there is less Javascript. So I build the page every time the user loads a file, changes the view or sends/executes his code. I know what will happen, if the user enters a infinite loop (or maybe a time consuming one) but still haven't tried it.
It's a simple action that causes the error:
- Run Sketchup
- Call the d/Code console (click the Button or menu entry)
- Click the Load button -> BOOM!
That means, everything is done in the window when I can click the Load button. But maybe Sketchup is a bit slower and hasn't registered the callbacks. Really don't know.
Export HTML is for exporting the current view without buttons and input field. If you have the "decoded" view and the output field, both will get exported.
Encode/decode is simple. You know. For a bit more comfort.
I'm interested in your code, if it is Ruby (I guess it's not)
azuby