[TxMt] Markdown symbol list idea

Charilaos Skiadas cskiadas at uchicago.edu
Sun Dec 4 07:47:02 UTC 2005


On Dec 4, 2005, at 1:22 AM, Allan Odgaard wrote:

> You could do something like this instead:
>
>    symbolTransformation = '
>       s/^\W.*/-/m;
>       s/(\w+(?:\W+\w+){,7})\W*(.+)?/$1(?2:…)/m;
>    ';
>

Hm, doesn't work over here. Tried these lines:
{

markdown will pick up

this line

And this too

works well with long lines though, puts the ellipses as promised

}

It actually picks up all these lines, and does the ellipses nicely.  
This is how my preferences file looks:

/* preferences */
{    showInSymbolList = '1';
     symbolTransformation = '
     s/^\W.*/-/m;
     s/(\w+(?:\W+\w+){,7})\W*(.+)?/$1(?2:…)/m;
    ';
}

Haris


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20051204/22708971/attachment.html>


More information about the textmate mailing list