Mixed Javascript and PHP in one file |
Site Admin
|
{PHP} line in associations assigns HTML+CSS+JS+PHP chain to highlighter so it expects HTML everywhere form the beginning, CSS to be included in <style> tags and JS included in <script> tags. All code included in <?php ?> is always treated as PHP.
{JS} line assigns JS+PHP chain to highlighter so it expects JS everywhere except <?php ?> tags. So it's nothing wrong in your case, but... it changes associations for all files in all the projects. We'll improve this in one of the future versions. |
||||||||||||
_________________ The PHP IDE team |
|
Thank you, I gave it a try and as you say the code highlights correctly as you say. But then unfortunately the Code navigator switches to JS for all PHP files (i.e. it is not controlled by current syntax highlight but by file extension) - I know I can switch it manually to PHP but it will revert back to JS as soon as I click in the code it goes back to JS. So in the long run this doesn't really work well. Thanks for trying, I'll cope with it - it is not that big issue, I just thought that maybe missed some feature of PhpED which already solves the problem. Regrards, Ondrej |
||||||||||||||
|
Site Admin
|
[quote="odinuv"]
There is no reason for me to try anything, so I didn't. I just explained you how it works. Regarding dynamic highlighting - your can turn it on and off if you wish. |
||||||||||||||
_________________ The PHP IDE team |
Mixed Javascript and PHP in one file |
|
||
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