RiFi2k / format-html-in-php

Basically this vscode extension uses all your standard configurations for html formatting, and your standard configurations for format on save, etc. It more or less works exactly how vscode should already work as it pertains to HTML in PHP files.
The Unlicense
33 stars 6 forks source link

Formatting isn't working #5

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, i'm currently trying to format HTML in a PHP File and it seems like the plugin doesn't work for me... I'm on the last vscode & php version, got the settings set and still only the php is formatted.

"[php]": {
    "editor.formatOnSave": true
    } is set.

This is my code (unformatted):

<?php

$sample = get_sample();
foreach ($sample as $s) {
    if ($s->bool == true) {
        var_dump($s->content);
    }
}

?>

<!-- sample page --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<?php include 'headings.php';?>
</head>
<body>
<?php include 'navbar.php';?>
<?php include 'image.php';?>
</body>
</html>

<ul id="nav">
<li>
<a href="Home.html"><?='HOME'?></a>
</li>
<li>
<a>About Me</a>
<ul>
<li>
<a href="Career.html">Career</a>
</li>
<li>
<a href="Coding.html">Coding</a>
</li>
<li>
<a href="Personal.html">Personal</a>
</li>
</ul>
</li>
<li>
<a href="Travels.html">Travel</a>
</li>
<li>
<a href="Contact.html">Contact</a>
</li>
</ul>

Could you please help me ? :)

RiFi2k commented 6 years ago

Got this in the works, duplicate of #4

RiFi2k commented 6 years ago

Fixed