I have tried unsuccesfully to find an answer to this so apologies if one is already there!!
I use a scripting language at work that windows users use with Notepad++. N++ only uses //. and //.. as the start and end of folding and for the life of me I can't get my regex to capture the closing reference. I would expect //.. to work but I'm not having any joy...
Help!!
On 18 Jun 2012, at 5:59 PM, domguin dom@domguinness.com wrote:
I use a scripting language at work that windows users use with Notepad++. N++ only uses //. and //.. as the start and end of folding and for the life of me I can't get my regex to capture the closing reference. I would expect //.. to work but I'm not having any joy...
Seems like this should work as a folding rule?
{ foldingStartMarker = '^//..*$)'; foldingStopMarker = '(^//...*$)'; }
Still no joy unfortunately... I have the tags set as follows:
foldingStartMarker = '(^//..*$)|/*'; foldingStopMarker = '(^//...*$)|*/';
running against the text:
//. //..
//.------ //..-----
//dfkgjhkdhfjg
/* */
DATA work.target (KEEP=col1 .. coln); SET work.source; RUN;
I would hope that the first two pairs of rows would fold and the /*...*/ block but I only get start fold marks on the //. and the starred blocks.
On 18/06/2012, at 20.50, domguin wrote:
Still no joy unfortunately... I have the tags set as follows:
foldingStartMarker = '(^//..*$)|/*'; foldingStopMarker = '(^//...*$)|*/';
The start marker would also match ‘//..’. Try instead:
foldingStartMarker = '(^//.(?!.).*$)|/*';