Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

php not recognized #308

Closed
1 task done
Skeeve opened this issue Jan 29, 2018 · 2 comments
Closed
1 task done

php not recognized #308

Skeeve opened this issue Jan 29, 2018 · 2 comments

Comments

@Skeeve
Copy link

Skeeve commented Jan 29, 2018

Prerequisites

Description

When I open a file not having the extension ".php" it is not automatically recognized as php althoug it starts with "<?php"

<?php
$t = array(
    'potcheck_name' => 'Port Check',
    'your_ip_address' => 'Deine IP Adresse',
    'common_ports' => 'Die häufigsten Ports',
    'port_is_open' => 'Port <strong>%d</strong> ist offen',
    'port_is_closed' => 'Port <strong>%d</strong> ist geschlossen',
);

Steps to Reproduce

  1. Take a php file like the snippet above
  2. Save it as "something.lang"
  3. Start atom
  4. Open "something.lang"
  5. Notice that the file is recognized as being "Plain Text"

Expected behavior:

File should be PHP

Actual behavior:

File is Plain Text

Reproduces how often:

100%

Versions

$ atom --version
Atom    : 1.23.3
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0

$ apm --version
apm  1.18.12
npm  3.10.10
node 6.9.5 x64
atom 1.23.3
python 2.7.10
git 2.14.3

uname -a
Darwin dhcp-140-25.lch.for-the-inter.net 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

Additional Information

See also

https://discuss.atom.io/t/better-language-recognition-please/51795

and

#307

@winstliu
Copy link
Contributor

I'm still not able to reproduce this, possibly because this was fixed by #217 (which is only included in Atom 1.24.0-beta0 and up). @Skeeve would you mind temporarily installing atom-mac.zip from the beta release and seeing if that helps?

@Skeeve
Copy link
Author

Skeeve commented Feb 13, 2018

Okay. Tested. It's fixed in 1.24.0-beta3

@Skeeve Skeeve closed this as completed Feb 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants