Hi, Replace the key 'Function Pattern' with the one below and you might have a surprise with code folding..
<key>Function Pattern</key> <string><![CDATA[ ^(?P<f>(?P<function_name>(private\s+)?(on|command|function)\s+(?P<ff>[a-zA-Z0-9_]+))(?ms:.+?)^end\s+(?P=ff)) ]]></string> Tested successfully but very quickly with TextWrangler 4.5.12 ( the latest) I have another option, but let comments arise before going further.. Regards, Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode