Enable Short Open Tags

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

Enable Short Open Tags

Postby Practicality » February 27th, 2018, 6:01 pm

Hello,

I work with a project that makes extensive use of short open tags (like <? ).

However, the syntax highlighting in the latest version doesn't seem to recognize these tags. I understand the need to turn that off in some projects, but is there a way to turn it on if we need to?

Thank you.
Practicality
 
Posts: 2
Joined: February 27th, 2018, 5:59 pm

Re: Enable Short Open Tags

Postby maros.beno » February 28th, 2018, 1:48 pm

Hi, as a workaround you can insert this property into your phpproj file.
You do not have the required permissions to view the files attached to this post.
Last edited by maros.beno on July 4th, 2018, 8:33 am, edited 2 times in total.
Maroš Beňo
User avatar
maros.beno
 
Posts: 62
Joined: October 12th, 2016, 12:11 pm

Re: Enable Short Open Tags

Postby Practicality » March 1st, 2018, 6:13 pm

This works nicely, thank you. :D
Practicality
 
Posts: 2
Joined: February 27th, 2018, 5:59 pm

Re: Enable Short Open Tags

Postby Miloslav Beno » March 5th, 2018, 10:10 am

Perfect, glad it works for you!:-)

In the latest update we've added a feature that will take this option from your php.ini file if you use PHP build-in server.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 50 guests

cron

User Control Panel

Login

Who is online

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

Users browsing this forum: No registered users and 50 guests