-
Notifications
You must be signed in to change notification settings - Fork 74
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
Emmet not working in files with .php extension #17
Comments
You can update this function to return |
Hi Sergache Thank for a quick reply. getSyntax: function() { if (fileExt == 'php') { if (syntax == 'user') { // maybe it's XSL? return require('actionUtils').detectSyntax(this, syntax); |
How exactly Emmet behaviour differs for PHP for you? |
Hi Sergeche I was about to send you an example, when I discovered what my problem was, it has nothing to do with the file extension or syntax detection. Notepad++ occasionally get the encoding detection wrong. A simple work around for the detection problem is to make a comment with a single UTF-8 character or /* ñ */ Thank you for your time, hopefully it is not "wasted" and this small thread will help another lost soul in the future. So in this case the solution was simple: Make sure the file encoding is UTF-8! Thanks, |
Is there any way I can get emmet to work within html files that are saved with the .php file extension.
I love using Emmet, but I have hundreds of (legacy) files full of html with (some) php inside them that have the .php extension.
Not being able to use emmet when working on these files basically make it useless to me.
Just to be clear I'm not asking to use emmet to write any php or to change the keybindings etc.
Only that emmet treats a file with the .php file extension in the same way as a .html
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: