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 + HTML indentation pattern #610

Open
SnowRunescape opened this issue Dec 16, 2023 · 0 comments
Open

PHP + HTML indentation pattern #610

SnowRunescape opened this issue Dec 16, 2023 · 0 comments

Comments

@SnowRunescape
Copy link

Currently, the indentation with PHP + HTML leaves the code in this way.

<?php
$teste = "dd";
if ($teste == "dd") {
?>
    <div>
        dsadas
    </div>
<?php
}
?>

What do we need to do to leave it like this:

<?php
$teste = "dd";
if ($teste == "dd") {
    ?>
    <div>
        dsadas
    </div>
    <?php
}
?>

Once inside an IF or FOR, we add 4 spaces for indentation. It doesn't make sense for it to stay in the same sequence as the IF, or even worse, at the beginning of the line without any indentation.

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

1 participant