Page 1 of 1

jaPBe tip regarding folding

Posted: Thu Oct 28, 2004 8:42 pm
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.

Posted: Fri Oct 29, 2004 9:56 am
by dmoc
Thanks for the tip.

Posted: Fri Oct 29, 2004 10:55 am
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).