Restored from previous forum. Originally posted by shdancer.
In Old Amos IDE there was a feature that i think it was nice to
implement in PB, it was Fold/UnFold Procedures, so if for example
you had a source code with +/- 50000 Lines of code you could Fold
just the procedures to one line, this would help alot the code visualisation.
So when i do a mouse right click on the procedure it would
show an option Fold/Unfold menu depending on the state.
I think this would be very helpfull for long sources, what do you think about this??
Example :
(Unfold)
Procedure test()
For Counter= 1 to 100
Debug "Hello World!!!"
Next Counter
EndProcedure
(Fold - In a Diferent Color or Font Type)
Procedure test()
ShDancer
Amos Feature import it to PB?
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by shdancer.
By the way where is the latest version ?
In the cvs???
http://cvs.purebasic.com
Num3 : What do you think about this?????
Just saw this in the Announcements.
viewtopic.php?t=5513
I'll check it out later at home.
Hum thanks fred, just what i wanna to hear.Originally posted by fred
The editor is opensource, if some of you are interessted.
Fred - AlphaSND
By the way where is the latest version ?
In the cvs???
http://cvs.purebasic.com
Num3 : What do you think about this?????
Just saw this in the Announcements.
viewtopic.php?t=5513
I'll check it out later at home.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by shdancer.
Well i was just to optimistic in my last post.
Just added the option Fold Unfold in the Pop up menu, and change the text.
So if i select from Procedure...EndProcedure then Right click and
select Fold it whould be like the example and UnFold changes back
to normal.
By the way thanks to Danilo for is code "SelectionComments.pb"
it was very helpfull.
But now i can't Hide or not show these lines in the IDE because
i don't know how to work with RichEdit
.
Chr(06)Procedure test()
Chr(07) For Counter= 1 to 100
Chr(07) Debug "Hello World!!!"
Chr(07) Next Counter
Chr(07)EndProcedure
These are the missing points that i remember:
- Need to know if the selection has a full procedure inside.
- Change "Procedure test()" Font or Color or Style after Fold
- Change "Procedure test()" Font or Color or Style to normal after UnFold
- Change text to Run/Compile (This should write a temp file and use it)
Can some one help me with this.
Thanks.
Just made "cat /zImage > /dev/audio" and i think i've heard God.
Well i was just to optimistic in my last post.

Just added the option Fold Unfold in the Pop up menu, and change the text.
So if i select from Procedure...EndProcedure then Right click and
select Fold it whould be like the example and UnFold changes back
to normal.
By the way thanks to Danilo for is code "SelectionComments.pb"
it was very helpfull.
But now i can't Hide or not show these lines in the IDE because
i don't know how to work with RichEdit

Chr(06)Procedure test()
Chr(07) For Counter= 1 to 100
Chr(07) Debug "Hello World!!!"
Chr(07) Next Counter
Chr(07)EndProcedure
These are the missing points that i remember:
- Need to know if the selection has a full procedure inside.
- Change "Procedure test()" Font or Color or Style after Fold
- Change "Procedure test()" Font or Color or Style to normal after UnFold
- Change text to Run/Compile (This should write a temp file and use it)
Can some one help me with this.
Thanks.
Just made "cat /zImage > /dev/audio" and i think i've heard God.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.

Dont forget:
- Change the line numbers in statusbar, so they still are correct in folded state.
- Change procedure browser, so it knows a folded procedure.
- unfold procedure if user do a copy ( or he wil not copy that procedure).
- unfold all procedures if user use an external tool. Of course fold again when tool is finished and source reloaded.
And the list is much...much longer i guess
If it could be done in couple of hours.......

Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
Well i was just to optimistic in my last post.

Dont forget:
- Change the line numbers in statusbar, so they still are correct in folded state.
- Change procedure browser, so it knows a folded procedure.
- unfold procedure if user do a copy ( or he wil not copy that procedure).
- unfold all procedures if user use an external tool. Of course fold again when tool is finished and source reloaded.
And the list is much...much longer i guess
If it could be done in couple of hours.......

Regards,
Berikco
http://www.benny.zeb.be/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by shdancer.
Welll i saw in this forum a thread that has the same topic/Idea so from now on guys i'll be posting there.
viewtopic.php?t=2525
Thanks for all the help.
Just made "cat /zImage > /dev/audio" and i think i've heard God.
Welll i saw in this forum a thread that has the same topic/Idea so from now on guys i'll be posting there.
viewtopic.php?t=2525
Thanks for all the help.
Just made "cat /zImage > /dev/audio" and i think i've heard God.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
For example the insert and the remove of spaces at the beginn of a marked text.
This is usefull, when you add a if and want a formated code...
Also CTRL+SHIFT+B for removing Comment Blocks doesn't work right. This will add a empty line after the comment-blocks. This happend, because in the sourecode the line will be deleted with sending the "del"-key to richedit, but richedit checks the shift-key-status and shift+del does nothing...
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
I have made a mod of the old version of the editor and no of my features are in 6.31!Originally posted by fred
The editor is opensource, if some of you are interessted.
For example the insert and the remove of spaces at the beginn of a marked text.
This is usefull, when you add a if and want a formated code...
Also CTRL+SHIFT+B for removing Comment Blocks doesn't work right. This will add a empty line after the comment-blocks. This happend, because in the sourecode the line will be deleted with sending the "del"-key to richedit, but richedit checks the shift-key-status and shift+del does nothing...
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB