jEdit Community - Resources for users of the jEdit Text Editor
Multiple folding modes at once?
Submitted by malyvelky on Sunday, 7 November, 2004 - 18:08
Hi,

I do C++ programming and I'd like to improve the editing experience by getting as much as possible out of code folding.
Basically, I want 3 folding modes at once: fold code between { and }, fold comments, and sometimes explicit fold. How to do it? Thanks! /M. Velky
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
You could try the Configurabl
by cvicari on Tue, 09/11/2004 - 14:13
You could try the ConfigurableFoldHandler, and use regular expressions to open and close folders. You can configure a regular expression that matches each string that begins with '{' or '/*', to open folders, and something similar to close.
 
OK, but
by Anonymous on Thu, 18/11/2004 - 14:48
OK, but if I use the RegExps open: {|(/*) close: {|(*/)
it will match not only '{}' and '/* */', but also '{ */' and '/* }', won't it?
 
You might want to take a look
by Anonymous on Thu, 18/11/2004 - 15:03
You might want to take a look at the JavaFold plugin. It may do what your want, or you maybe able to use it as a base for creating a FoldHandler that does what you want.

-Ollie
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82347
Context Free Art (*.cfdg)   0.31   46054
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16067
jEdit XP icons   1.0   15228
XP icons for jEdit   1.1   14292