Multilined statements for PB IDE ...
Posted: Tue Apr 20, 2010 9:14 pm
Hi!
If anyone feels the need to have some support for multilined statements - or in other words, long and complex statements, that can be splitted over multiple lines - this might be a solution for you.
I made a PB IDE plugin that makes this possible.
The idea/concept: The character ":" is already used to connect multiple statements to one line. I thought that the same character could also work as the opposite. If you have a ":" at the end of a line without any trailing code (with exception of comments) this stands for "continue the actual line in the following".
Example:
So, as you can see, the last line of such a multiline-statement doesn't have a ":".
Features of my plugin:
* Multiline commands
* Preprocessing during the events load, save, compile, and create executable (edit)
* The saved file is always runnable even without my plugin
* Backup files are created as prevention against dataloss as implication of bugs
* Debugger works without any drawbacks (breakpoints, and even hovering of variables)
Interested? Download it from my website: http://www.wojner.at/static/downloads/purewrap.exe
But please note that it's still in a proof of concept state, so don't use it on important code firstly.
The plugin is splitted into 3 tool-definitions as follows: (Edit: 4 tool-definitions)
Tool1:

Tool2:

Tool3:

Edit: Tool4:

Edit: You can also change the action-character to any you like by editing the file purewrap.pref which is initially created in your home-folder.
I hope it works for you as stable as for me ... have phun with it!
Cheers,
Didelphodon.
If anyone feels the need to have some support for multilined statements - or in other words, long and complex statements, that can be splitted over multiple lines - this might be a solution for you.
I made a PB IDE plugin that makes this possible.
The idea/concept: The character ":" is already used to connect multiple statements to one line. I thought that the same character could also work as the opposite. If you have a ":" at the end of a line without any trailing code (with exception of comments) this stands for "continue the actual line in the following".
Example:
Code: Select all
a.l = 1 : ; Some comment
+ 2 :
+ 3 ; The end of a 3line statement
Features of my plugin:
* Multiline commands
* Preprocessing during the events load, save, compile, and create executable (edit)
* The saved file is always runnable even without my plugin
* Backup files are created as prevention against dataloss as implication of bugs
* Debugger works without any drawbacks (breakpoints, and even hovering of variables)
Interested? Download it from my website: http://www.wojner.at/static/downloads/purewrap.exe
But please note that it's still in a proof of concept state, so don't use it on important code firstly.

The plugin is splitted into 3 tool-definitions as follows: (Edit: 4 tool-definitions)
Tool1:

Tool2:

Tool3:

Edit: Tool4:

Edit: You can also change the action-character to any you like by editing the file purewrap.pref which is initially created in your home-folder.
I hope it works for you as stable as for me ... have phun with it!
Cheers,
Didelphodon.