emacs-phps-mode icon indicating copy to clipboard operation
emacs-phps-mode copied to clipboard

HTML in PHP?

Open kresdjan opened this issue 2 years ago • 5 comments

Does this package include HTML in PHP? I can see there is a mention about indentation for inline-html. Skærmbillede 2023-02-24 kl  13 46 28

kresdjan avatar Feb 24 '23 12:02 kresdjan

Indentation is supported for HTML/XML/JavaScript but not syntax-coloring, is that what you mean?

cjohansson avatar Feb 24 '23 13:02 cjohansson

Hi, sorry for the bad wording. Yes syntax highlighting, but also mhtml-mode features.

kresdjan avatar Feb 24 '23 14:02 kresdjan

Ok, I think ideally that it would be nice to make it work with a multi-major mode of some sort, phps-mode could take care of the PHP areas and another mode like mhtml-mode could handle the HTML areas. I am not interested in implementing a HTML-mode inside phps-mode, would be better to have separation of duties, PHP can be used with anything so one would have to implement a lot of different modes inside this mode

cjohansson avatar Feb 24 '23 22:02 cjohansson

Yes something like that, I tried to get it working a couple of years ago with mmm-mode but haven't looked into it recently, it should be possible to get it working I think

cjohansson avatar Feb 28 '23 06:02 cjohansson