jEdit Community - Resources for users of the jEdit Text Editor
Php code folding.
Submitted by mat_r on Thursday, 18 June, 2009 - 11:33
Hi,

I'm trying to set up code folding using the ConfigurableFoldHandler. I've got it working well folding code between { and } however I would also really like to get it working around comment delineators /* and */ . To do this I have been trying to cobble together a regular expression but without much luck. If anyone has any suggestions of how best to achieve this I would be most grateful.

Thanks,

Matt.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
These Expressions work for me
by Robert Schwenn on Sun, 21/06/2009 - 19:57
These Expressions work for me:
begin: "\{|/\*"
end: "\}|\*/"

However, the mode specific settings don't work for me at all.

Robert
 
Perfect
by mat_r on Mon, 22/06/2009 - 09:55
Does just what I needed. I think I was forgetting to escape the asterisk. Thanks you.

(The mode specific settings don't seem to work for me either)
User login
Browse archives
« January 2018  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   50958
Context Free Art (*.cfdg)   0.31   41186
JBuilder scheme   .001   17007
BBEdit scheme   1.0   16609
ColdFusion scheme   1.0   16592
R Edit Mode - extensive version   0.1   14876
Advanced HTML edit mode   1.0   14052
Matlab Edit Mode   1.0   13991
jEdit XP icons   1.0   13421
XP icons for jEdit   1.1   12445