jaPBe tip regarding folding

Everything else that doesn't fall into one of the other PB categories.
wdurden
User
User
Posts: 13
Joined: Mon Feb 23, 2004 3:29 am

jaPBe tip regarding folding

Post by wdurden »

Hi folks, I just wanted to share a tip regarding the JaPBE editor because I didn't discover it easily myself. I love the editor but couldn not find how to create custom folding points, and could only fold on the ones created automatically by the editor. I wanted to hide large chunks of includes, large comments or parts of the code that were static and not in play but couldn't find an option in the menus or preferences (this is called "explicit folding" in Jedit for instance)... After bothering the creator, it turns out there is a simple way to do this and it is actually in the readme file although I missed it.

Just put ;{ where you want the fold point to start and ;} at the end...

Hope this helps you out, I had wanted it and looked and looked and finally got the nerve to email the maker and it turns out it was there all along.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Thanks for the tip.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

It's in jaPBe's readme.txt since the first release :wink:
jaPBe can fold. Foldmarks are automatic set for procedures and structures. When you want to create your own folds, use the ";{" and ";}" tags. (btw: ";{-" also create a bookmark).
Post Reply