Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jonmos1 on September 25, 2016, 02:15:55 pm

Title: User defined code folding when writing FORTRAN90
Post by: jonmos1 on September 25, 2016, 02:15:55 pm
Hi!

I am using C::B on a Windows10 OS to write a Fortran90 program.

I know that, when writing C, user defined code folding can be done by using a bracket after the commenting syntax:

//{ as the starting point, and
//} as the ending point

I cant get this to work with the FORTRAN platform however, as it uses a different syntax for commenting (exclamation mark).

Is there any solution to this problem?

Best regards,
Jon
Title: Re: User defined code folding when writing FORTRAN90
Post by: oBFusCATed on September 25, 2016, 03:03:12 pm
By the looks of it the fortran lexer/folder doesn't support this.
I think it is called explicit fold points and it seems to work for c++ and some other languages.
See here for details http://www.scintilla.org/SciTEDoc.html
Probably you can ask on their mailing list if fortran is supported and if not file a feature request.