Is there any way where I can fold multiple continuous comment lines?

e.g. In SQR, code can be commented only by line comment character ! Exclamation sign

If my code has:

1| ! Testing 1
2| ! Testing 2
3| ! testing 3
4| ! testing 4


Can I have it folded to

1| ! Testing 1 [3 lines]


Thanks in advance

On 2/1/07, Manoj < psmanoj@gmail.com> wrote:
Thank you Michael.

That was very useful. and quiet meaningful.


On 2/1/07, Michael Chisholm < chisholm@mitre.org > wrote:
That still looks like gobbledygook to me ;)

You don't need [] around single characters (or what would match a single character).  How bout for end:

^\w*(?i)end-((sql)|(program)|(report)|(procedure)|(select)|(if)|(evaluate))

and something similar for begin?  Or if just matching "end-" would be sufficient, how about

^\w*(?i)end-

Andy

Manoj wrote:
Thank you again.

Now my regex string looks better

Start : ^[ \t]*(?i)[BDIE][EFV][CGA]?[LI]?[ANU]?[RA]?[ET]?-?[DSPVHFRE]?[REAOQ]?[COLTRAP]?[LCEUGIDTO]?[APECRIR]?[ARDTBN]?[MUELG]?[RE]?[E]?

End:
^[ \t]*(?i)[E][N][D]-[DSPHFRIE][REOQFV][COLTAP]?[LCEUGDTO]?[APECRIU]?[ARDTN]?[MUEGT]?[RE]?[E]?

Let me know if I can make it more simpler

Thank you very much.



On 2/1/07, Steve Jakob <steve.jakob@wideskies.ca> wrote:

On 1-Feb-07, at 2:12 PM, Michael Chisholm wrote:
> If you are using plain Java regexes there, you don't use pipes
> inside character classes.  Afaik [a|A] would match a, A, or the
> pipe character.  What you really mean is [aA].

You (and Alan) are correct. The pipe character is not needed.

> Better yet, how about (?i)begin, or (?i:begin)?  That turns on case-
> insensitive matching inside the regex itself.

Excellent. I wasn't aware of this construct. I had checked the
documentation, but missed that.

> Perhaps RETest uses the old gnu.regexp package?  If so, maybe it
> isn't as capable as what's built into java now... not sure about
> that.  (the web page seems to be down).  It should be changed to
> use the builtin regex package I would think, since you can
> eliminate a library, and anyway it's *much* faster.

No, the RETest plugin has used the java.util.regex since last year
when the use of gnu.regexp was deprecated in jEdit.

Steve Jakob


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users



--
Let your presence make difference to the world!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.

Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users




--
Let your presence make difference to the world!



--
Let your presence make difference to the world!