views:

7

answers:

0

Hope someone can help.

I am a new user to textmate and want to add code folding to if|endif & foreach|endforeach on textmate.

These are the current supported folds

foldingStartMarker = '(/\*|\{\s*$|<<<HTML)';
foldingStopMarker = '(\*/|^\s*\}|^HTML)';

I have tried

foldingStartMarker = '(/\*|\{\s*$|<<<HTML|if)';
foldingStopMarker = '(\*/|^\s*\}|^HTML|endif)';

Which starts the fold for an if but the stop Marker is not being picked up.

Has anyone else done this ?

Hope you can advise