Vscode: CSS highlight inside PHP files

Created on 30 Aug 2017  路  17Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.15.1
  • OS Version: macOS 10.12.6

Steps to Reproduce:

  1. Open a new PHP file with this content:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
    .test {
        color: #fff;
    }

    <?php
    echo $css;
    ?>
    </style>
</head>
<body>

</body>
</html>
  1. Notice that after the $css; the highlight of CSS expands to the end of the file.


Reproduces without extensions: Yes

bug php verified

Most helpful comment

PHP in