Skip to content

CSS highlight inside PHP files #33519

@dv336699

Description

@dv336699
  • 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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugphpPHP support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions