[oXygen-user] Validate XHTML+PHP
George Cristian Bina
Sat Feb 12 00:22:38 CST 2011
Hi Shaun,
You have two options:
- from the project panel, use the Open with -> Internal Editor from the
contextual menu (right click) and select the XML Editor from there.
oXygen will remember that you opened that file with the XML editor and
next time you open it normally it will use the XML editor again.
- go to Options->Preferences -- File Types and identify the php
extensions and select for that the XML Editor instead of the PHP Editor
that appears as default. Thus all the .php files will be opened by
default with the XML editor.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 2/9/11 3:58 PM, Shaun Roe wrote:
> there is probably an easy way to do this, I just dont know it:
>
> I have an xhtml document with embedded php. In order to execute it on
> the server, it has .php extension. I would like Oxygen to validate the
> file as xhtml. How can I do this? Opening the .php file appears to 'grey
> out' the options I would like to use.
>
> cheers
> shaun roe
>
> e.g.
> <!DOCTYPE html SYSTEM
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head><title>
> LHC Statistics
> </title>
> <link rel="stylesheet" type="text/css" media="screen" href= "test.css"/>
> </head>
>
> <body>
> <h1>
> <?php
> echo"Hello Alastair";
> ?>
> </h1>
> </body>
> </html>
>
More information about the oXygen-user
mailing list