Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting isn't working #5

Closed
ghost opened this issue Sep 3, 2018 · 2 comments
Closed

Formatting isn't working #5

ghost opened this issue Sep 3, 2018 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@ghost
Copy link

ghost commented Sep 3, 2018

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
Copy link
Owner

RiFi2k commented Sep 4, 2018

Got this in the works, duplicate of #4

@RiFi2k RiFi2k added the duplicate This issue or pull request already exists label Sep 4, 2018
@RiFi2k
Copy link
Owner

RiFi2k commented Sep 4, 2018

Fixed

@RiFi2k RiFi2k closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant