|
From: | Lennart Borgman (gmail) |
Subject: | Re: Changing font-lock for combined HTML and PHP code?? |
Date: | Mon, 16 Apr 2007 21:41:01 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
William Case wrote:
Hi; I am working on web site made up of files that combine HTML and PHP. My main interest is in the PHP coding. Is there a relatively easy way to set the font-lock colors for the tags (constants) that distinguishesbetween a HTML tag and a PHP tag when I am in php-mode.In case I am misusing terminology, by tag I mean expressions like <p> ... </p> in HTML; <?php ... ?> in PHP.
Yes, perhaps. If you are using the Emacs 22 beta then you can use nXhtml: http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.htmlBut at the moment I am working to fix some bugs, see the "News and Notes about nXhtml" at the top. I hope I can upload a new version the nearest days, ie version 0.98 (the latest upload is v 0.97).
[Prev in Thread] | Current Thread | [Next in Thread] |