HowTo make my own coldefolding?

Questions on using RSyntaxTextArea should go here.

Moderator: robert

HowTo make my own coldefolding?

Postby andreas » Sun Jul 07, 2013 11:48 am


I want to make my own folding, the i can't access the example website: ... lding.html

can someone check this?


Posts: 3
Joined: Sun Jul 07, 2013 11:45 am

Re: HowTo make my own coldefolding?

Postby robert » Sun Jul 07, 2013 2:55 pm

Hi Andreas,

Unfortunately, that documentation has not yet been written. For now, your best bet is to check out the source from SVN and see how folding is implemented for existing languages. The important stuff is all in the folding package. You have to create and register your FoldParser class with the singleton FoldParserManager.

java code:

FoldParserManager.get().addFoldParserMapping("text/mylanguage", new MyFoldParser());

Check out the XmlFoldParser class for a relatively simple example of a fold parser implementation.
User avatar
Posts: 852
Joined: Sat May 10, 2008 5:16 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests