strings different colors
echo "strings" are showing green but die("strings") are showing black; can't figure out why in Settings, it only has option for Strings and it shows green.
请先登录再写评论。
echo "strings" are showing green but die("strings") are showing black; can't figure out why in Settings, it only has option for Strings and it shows green.
请先登录再写评论。
Correction: echo strings are showing black (with slightly-green background), die strings are showing green (with no background); I want echo strings to show green at least.
Hi there,
You really need to show whole line not just part of it.
The only idea that comes into my mind right now is that it is a Language Injection fragment in use in echo'ed string.
The color is the same across each line, and the whole 2nd line is shown, so I could shorten the first line and you'd see the whole line, but that doesn't change which colors you see, so maybe you need to blow up the image to see the colors better:
http://i.imgur.com/KxyK5LM.png
Every echo string shows black text on a green background, even if it's just normal text with nothing special in it, and every die string (not talking about special things like vars) shows green text on white (actually light-blue) background; the problem is A. they're not consistent even though they're just both strings, and B. I want strings in echo and die to show as green text on white background.
Hello Dave,
Please check the color scheme in File | Settings | Editor | Colors & Fonts | PHP. Try to switch it to the default.
If possible, provide a code sample where the issue could be reproduced with.
For me, sample code:
does not reproduce the described behavior - both echo and die strings are showing in green.