VS HTML Code Formatter breaks dynamic PHP

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

VS HTML Code Formatter breaks dynamic PHP

Postby silas2 » February 10th, 2017, 4:24 pm

Great product by the way, I use it all day!
But my problem is I'm working on dynamic html/php (Magento) and the VS html window formatter (Ctrl-k, Ctrl-D but it seems to run the procedure without human intervention as well) breaks the escaped php code, e.g.
Code: Select all
    <input id="search" type="text" name="<?php echo $this->helper('catalogsearch')-blah blah

turns into:
Code: Select all
    <input id="search" type="text" name="" <?php echo $this->helper('catalogsearch')-blah blah

which doesn't look too bad, but my oh my does it make for some subtle bugs!
I know I should search/replace for two double quotes after working on every file, but I just don't remember.
Is there something obvious I'm missing?
silas2
 
Posts: 1
Joined: February 10th, 2017, 4:13 pm

Re: VS HTML Code Formatter breaks dynamic PHP

Postby Miloslav Beno » February 17th, 2017, 2:43 pm

Hello!

Thanks for the feedback. We're very glad PHP Tools help you every day ;-)

This really seems as a bug. What VS version do you use? and do you have other extensions? I suspect this is not coming from our formatter, maybe default html formatter is somehow activated(we deactivate it and use our own) and messes up the stuff.

Could you send me the whole html code snippet where this happens?

Thanks so much!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 961
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 1 guest

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 1 guest
Phalanger