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

Hi!

I want to make my own folding, the i can't access the example website: http://fifesoft.com/rsyntaxtextarea/doc ... lding.html

can someone check this?

Thanks!

Andreas
andreas
 
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
robert
 
Posts: 798
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron