-
Notifications
You must be signed in to change notification settings - Fork 30
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
Automatically handle PHP #36
Comments
There are classes for PHP in |
@dgutov Those sample classes look good. Could mmm-mode turn them on by default? |
But, erm, it doesn't do that for any classes and languages. The README tells the user to put a call to `mmm-add-mode-ext-class' (or several) into their init file. Should PHP be different? |
@dgutov I suppose not. That's a decent way for mmm-mode to behave, it's just... sometimes it seems like endless configuration before Emacs can sensibly edit some code. |
I hear you. I think not enabling any classes by default is a good thing (no possible conflicts with classes defined by the user), but I guess we could provide a new feature called, for instance, |
Now you've whet my appetite.
|
Ok, I'll take a look at that. |
@mcandre Do you think the new file should include this bit from
|
And a couple questions on your config.
|
@dgutov I think we should enable |
I think it would be incorrect to assume that the chunks between PHP blocks in a .php file are HTML. I've seen plenty of PHP files which generate other content types. |
@purcell Fair point! What if |
* Mention php-mode installation requirement
Sounds fine to me. I've seen the same with ERB and Sinatra template file naming convention (example). Updated. |
As I see it, the main problem left is that Either someone has to persuade @ejmr not to do that, or the users will need to be careful about which file is loaded last. |
This issue came up almost a year ago: For a few months I've had it on my todo list to do something like make PHP Mode check |
I guess the hard way to fix that would be along the lines of skeeto/skewer-mode#22. The easy way: just passing |
+1 for @dgutov's suggestion. No point doing anything more involved. |
I will modify |
Hope this helps: emacs-php/php-mode@2d0c722 |
@ejmr Works fine for me, thanks! |
I believe this is fixed now. |
The Emacs Wiki shows a working snippet for configuring mmm-mode for PHP code. Could we incorporate this into the default behavior for mmm-mode? As a PHP coder, it would be nice to have PHP working out of the box.
http://www.emacswiki.org/emacs/HtmlModeDeluxe
The text was updated successfully, but these errors were encountered: