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

PHP open and close brackets always seem to be misaligned when with HTML #2878

Open
karlprolifik opened this issue May 5, 2024 · 1 comment

Comments

@karlprolifik
Copy link

karlprolifik commented May 5, 2024

Here's a simple visual of the problem;

<div>
  <?php
  if ($foo == $bar) {
    if ($foo == $bar) {
      if ($foo == $bar) {
        if ($foo == $bar) {
          if ($foo == $bar) {
  ?>
            <div>

            </div>
  <?php
          }
        }
      }
    }
  }
  ?>
</div>

Surely the "?>" on line 8 and the "<?php" on line 12 should be further indented?

MacOS Ventura 13.6.1
Running VSCode 1.88.1

Active Extensions are;

  • PHP Intelephense v1.10.4
  • PHP Language Features v1.0.0
  • HTML CSS Support v2.0.9
  • Live Sass Compiler v6.1.2

Screenshot 2024-05-05 at 14 18 26

@glauberm
Copy link

Surely the "?>" on line 8 and the "<?php" on line 12 should be further indented?

Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants