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
« February 2025  
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
 
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   107140
Context Free Art (*.cfdg)   0.31   46064
BBEdit scheme   1.0   18603
JBuilder scheme   .001   18504
ColdFusion scheme   1.0   18034
R Edit Mode - extensive version   0.1   17483
Advanced HTML edit mode   1.0   16215
Matlab Edit Mode   1.0   16079
jEdit XP icons   1.0   15238
XP icons for jEdit   1.1   14302