VS HTML Code Formatter breaks dynamic PHP
Posted: 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.
turns into:
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?
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?