We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to get the code from Processings editor for my tool. I can't find too much documentation on this but I know its using the processing.app.Editor. Any help?
Answers
You can use
editor.getText();
to get the code in a tool. Is that what you wanted?That just gets the code in the selected tab. I want the whole code in every tab. Any more help?
Processing PDE organises program code by tabs and this is reflected in the API.
Start with the Editor class object
Then get the current sketch
Then find out the number of tabs
Then iterator over each tab get the code and do something with it.
NOTE: code was typed straight into comment so maybe syntax errors
Thanks quark that helped :)
EDIT: nope 0 errors good job