dmitri wrote: |
{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. |
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