Add the support to match the pair (like happens with brackets) for the alternate PHP syntax with colons.
if ($i == 0):|
Leaving the cursor at | would highlight the "endif;" part. Same for foreach: / endforeach, while: / endwhile, else:,
elseif ():, and switch: / endswitch;
+1 for this idea. IMHO the colon syntax for PHP is a LOT more readable. A } just isnt' as expressive as 'endforeach'.
If not on the colon then it would be great if the words 'if' and 'endif' could be highlighted in the same way as html
opening and closing tags are handled.
reassigning to default owner
+1 for this please. Colon syntax is far more readable than braces in templates, but not having the ability to jump between begin and end blocks in this format makes it less tempting to use.
Committed into web-main today. Should be available in the next daily build.
Integrated into 'main-golden', will be available in build *201105120000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Pisl <email@example.com>
Log: #164347 - Highlight pairs for colon alternate syntax (if, foreach, while)
#183555 - Syntax highlighting if endif constructs
#187188 - Something similar to "match brackets" for "alternative syntax for control structures"