This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Diff "string_d_q" and 'string_s_q' highlight | ||
---|---|---|---|
Product: | php | Reporter: | azrael_valedhel <azrael_valedhel> |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | NEW --- | ||
Severity: | blocker | CC: | azrael_valedhel |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
azrael_valedhel
2008-07-23 22:52:22 UTC
BTW - single quoted strings are not parsed in the same way as double quoted strings. <?php $string = 'value'; echo '$string'; ?> won't print |value| but exactly what was inside the quotes - that is: |$string| while <?php echo "$string"; ?> will evaluate the variable inside the quotes into |value|. In echo '$var' the $var is colored as a string. In echo "$var", the $var is colored as a variable. So even now there is a difference between these strings. Yes, but you can do much more in "" - like escape characters. It may be just my personal preference, but I'm working with some "not that small" project at the moment and I was given the code that some other programmer started. I comment it and change it to suit my preferences, highlighting '' and "" in different way would be useful at the moment. But that's not just it - just see this N++ highlighted code: http://img523.imageshack.us/img523/2879/stringkp8.png (Yup, // and /* */ with separate highlight options would be nice too) With this type of syntax highlightning I can see at a glance what is going on even with lots of code. |