Page 1 of 1

No highlight in <script>' tag while enabled PHP Tool

PostPosted: September 13th, 2018, 12:05 pm
by safil94
Hi.
I am C#-beginner for 6-7 years, VS IDE is comfortable for me after this time.
I started learn PHP about 2 years ago, and these 2 years I used VS like notepad.
It has not Intellisense for PHP, but highlights JS-code in <script> tag.
Today tried to use Extension and got little trouble: after adding Tools, VS' default highlight for <script> tag in my *.PHP files was disabled, but added Intellisense.
How to combine JS-hightlighting and PHP-Intellisense.

My prefer VS-mode for PHP-project is "Open Folder".

From here


PS. I know this is not good programming habit - directly add JS in HTML/PHP :?

Re: No highlight in <script>' tag while enabled PHP Tool

PostPosted: September 21st, 2018, 9:46 am
by Miloslav Beno
Hello,

Thanks for the post.

That's strange, I've just tested it and seems to work fine. What VS and PHP Tools version do you have (I guess this one is the latest)?

js-in-php.png


Thanks,

Re: No highlight in <script>' tag while enabled PHP Tool

PostPosted: October 21st, 2018, 11:32 am
by honglei
I want to enable highlighting of the open/end html tag when selecting the end/open with the cursor - meaning, if you have the following sample:

.
.
.
<div id="div1">

</div> <!-- end of div1 -->
</div>
.
.
.
When putting the cursor next to the open tag div1, I want the end tag of this div is highlighted, and when putting the cursor next to the end tag of div1 the open tag of this div is highlighted.

How to enable this feature ?