====== User Defined Scopes ======
Generally, there is no difference between user defined or programming language defined scopes - both processed same way.
You are not able to defined you own scopes (collapsing region) everywhere you want - syntax should allow this. Otherwise you will get compiling errors. But there is a trick.
You can place you user defined scope blocks inside of the //comment//:
Untitled
And this looks like this:\\
{{:syntax:user_region_in_php.png?nolink|User defined regions in PHP}}
To make it nicer, just create new style (for example called //Format Tag//) with color different from standard comment and with prefix started with language dependent comment symbol (as %%#%% for PHP):
When you have new style, create new scope, that allowed only in this style: