Skip to content

Not detecting language for PHP files using shebang #26580

Closed

Description

@mappu
  • VSCode Version: 1.12.1
  • OS Version: debian stretch

Steps to Reproduce:

  1. Open file with #!/usr/bin/php shebang header but not .php extension
  2. File is not detected as PHP code, instead uses 'Plain Text' highlighter

It should be easy to fix in vscode/extensions/php/package.json adding a firstLine property, as is done for e.g. Python.

Activity

  1. added a commit that references this issue on May 13, 2017
    a95ad4c
  2. added a commit that references this issue on May 13, 2017
    092ea70
  3. added
    bug
    on May 13, 2017
  4. added this to the May 2017 milestone on May 13, 2017
  5. added
    languages-basic
    on May 13, 2017
  6. added a commit that references this issue on May 15, 2017
    5f00cb1
  7. added
    verified
    on Jun 1, 2017
  8. locked and limited conversation to collaborators on Nov 18, 2017
  9. added a commit that references this issue on Sep 6, 2026
    95c4428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buglanguages-basicverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions