would it be possible to add maybe an option to do custom code folding. i do a lot or reg file work, and i dont really need to fold the registry keys themselves. i have comments about what each set of the keys below it does, and it is much easier to navigate if i could fold everything and leave the comment lines and just see the descriptions rather than the contents which are often lengthy.
basically an option to use ";" or "//" as the folding delimiter rather than [];
it would be useful also for well commented source code and script files as it could show you program execution flow without having to browse the entire file for comments but rather instantly know what part to unfold for modification.
thanks,
Leon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i suppose something like ;/ and ;\ can be used to indicate the beginning and end of what needs to be folded so that multiple consecutive comment lines arent folded individually. maybe in the xml schema add an entry to specify a custom string for beginning and end of foldable comment block delimiters, that way it doesnt need to be hardcoded :) and you would need an option to disable the standard code folding while keeping the custom in teh prog itself.
i hope it's easy to do and i dont know about anyone else but i think it would be useful.
thoughts?
Leon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
would it be possible to add maybe an option to do custom code folding. i do a lot or reg file work, and i dont really need to fold the registry keys themselves. i have comments about what each set of the keys below it does, and it is much easier to navigate if i could fold everything and leave the comment lines and just see the descriptions rather than the contents which are often lengthy.
basically an option to use ";" or "//" as the folding delimiter rather than [];
it would be useful also for well commented source code and script files as it could show you program execution flow without having to browse the entire file for comments but rather instantly know what part to unfold for modification.
thanks,
Leon
i suppose something like ;/ and ;\ can be used to indicate the beginning and end of what needs to be folded so that multiple consecutive comment lines arent folded individually. maybe in the xml schema add an entry to specify a custom string for beginning and end of foldable comment block delimiters, that way it doesnt need to be hardcoded :) and you would need an option to disable the standard code folding while keeping the custom in teh prog itself.
i hope it's easy to do and i dont know about anyone else but i think it would be useful.
thoughts?
Leon
The standard for this in many editors (including Scintilla) is to use three open braces for start of fold and three closed braces for end of fold.
So something like:
//{{{ Variables
variable 1;
variable 2;
variable 3;
//}}}
Which would fold down to a line that looks like:
//{{{ Variables