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

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

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

Postby safil94 » September 13th, 2018, 12:05 pm

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 :?
You do not have the required permissions to view the files attached to this post.
safil94
 
Posts: 1
Joined: September 13th, 2018, 11:33 am

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

Postby Miloslav Beno » September 21st, 2018, 9:46 am

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,
You do not have the required permissions to view the files attached to this post.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

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

Postby honglei » October 21st, 2018, 11:32 am

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 ?
Complete Guide About Cheap Car Insurance Quotes. Get Best Auto Insurance Quotes. Compare Insurance Companies in United States.
honglei
 
Posts: 1
Joined: October 21st, 2018, 11:28 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 37 guests

cron

User Control Panel

Login

Who is online

In total there are 37 users online :: 0 registered, 0 hidden and 37 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 37 guests