Edit PHP as XHTML?
Posted: Wed Feb 22, 2017 9:29 pm
Using the latest 18.1 editor:
I often have to edit PHP documents which are in fact well-formed XHTML5, and I'd like to be able to do that in Oxygen. I've tried two approaches: defining a new document type for *.php, and specifying that it's XML, and modifying the current XHTML document profile so that it also includes an association rule for *.php. Neither works; *.php documents just seem to be treated as text, and no well-formedness checking is available.
What am I missing?
Cheers,
Martin
I often have to edit PHP documents which are in fact well-formed XHTML5, and I'd like to be able to do that in Oxygen. I've tried two approaches: defining a new document type for *.php, and specifying that it's XML, and modifying the current XHTML document profile so that it also includes an association rule for *.php. Neither works; *.php documents just seem to be treated as text, and no well-formedness checking is available.
What am I missing?
Cheers,
Martin