News Download Project page | Browse Submit New | Admin Donate! Project:
#ID 62
Title Highlight if/else
Description Suggestion to the current bracket/tags matching. Please also support highlighting if/else (if possible). :D

Thanks!!!
Status Opened Opened
Type Enhancement Enhancement
Resolution Resolved Resolved
Priority Normal
Posted 2007-04-26 20:51
Last modified 2007-06-10 10:02
Closed (None)
Submited by Michael Pham
E-mail (hidden)
Back

Total comments: 3 ,Add comment
#ID 61 Posted By Krystian Bigaj Posted 2007-04-27 20:27
Add to TSynTokenMatch array:
(OpenToken: 'if'; CloseToken: 'else'; TokenKind: Integer(stkPhpKeyword)),


But with that is a small problem, not always you have matched "if/else", you could only make a workaround when painting that tokens - if there is unmatched 'if' then don't paint it.
#ID 63 Posted By R. Rajesh Jeba Anbiah Posted 2007-06-08 14:42
What about if the code has:
for($i=0; $i<10; ++$i) { //see the brace

}

and same code contains:

for($i=0; $i<10; ++$i):
blah
blah
endfor;

Now, it's possible for the first case (i.e., {}). But, is it possible for the second case (i.e., for endfor) simultaneously?
#ID 64 Posted By Krystian Bigaj Posted 2007-06-10 10:01
Added to SVN.

But it won't work properly in case when using:
if

elseif

else

but that will work fine:
if

else if

else

#ID (New) Posted By
Verification code Retype string from image Verification code here - case sensitive string, only A-Z, a-z chars
BBCode: [b]...[/b], [i]...[/i], [u]...[/u], [color=...]...[/color], [bgcolor=...]...[/bgcolor], [code]...[/code], [email]...[/email], [email=...]...[/email], , [url]...[/url], [url=...]...[/url]

Valid XHTML 1.0! Valid CSS! 60free OVH Hosting PHP Powered MySql Powered Apache Powered

Mozilla Mozilla Firefox Mozilla Thunderbird

NO IE! Use a better browser... Warning: Never buy hp notebooks, especially pavilion dv1000 series!!
Personal Bug-Tracker - Copyright © 2005-2009 Krystian Bigaj FlatDev
Digitally Imported