Syntax error highlighting - A suggestion |
Site Admin
|
Actually it does not highlight the errors in the statement block being written if there is no error. Code Inight does its best to avoid wrong errors in all cases.
And with incomplete statements the errors are shown for the next statements. For example if you have <?php | $a = 55; and want to add $b = 44 in the position maked with |, you'll see errors highlighted in the next line while typing the new statement and will not see any errors in the block you're typing. As soon as you finish the statement, the errors/warning won't be shown anymore. |
||||||||||||
|
|
Quite right, but in fairness it is hard to avoid an error in a statement in the process of being written, when it is being inserted into existing code - impossible in fact $b=1; echo $ <-----incomplete statement haven't yet put in b; $b++; <-----This line highlighted, because with no ; it is parsed as same statement
Well my point is exactly that - When a statement is incomplete - i.e before the ; is written, then the succeeding line is rightly parsed as the same statement. It was my suggestion that this statement be ignored by phped when error checking. |
||||||||||||||||
|
|
I mentioned this before - it's annoying. I ran into a variation today in a Smarty template file that had <html> and <body> marked as errors because they weren't closed - this template file was just the header.
Not checking the next line (with content) would be good. I'd also like to be able to turn it on and off with a keyboard shortcut. I'd like to only turn it on for a second or so before uploading/testing/debugging, for a quick check over my code, and then turn it straight off again, after fixing any errors it finds. |
||||||||||||
|
Syntax error highlighting - A suggestion |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by