← Back to team overview

nxhtml team mailing list archive

Re: [Question #75032]: Recognizing new file extensions

 

Question #75032 on nXhtml changed:
https://answers.launchpad.net/nxhtml/+question/75032

    Status: Open => Answered

lborgman proposed the following answer:
Hi Martin, nice that you put the question here, that will probably be
useful for many users.

I think you will want to use a newer version of nXhtml! I have rewritten
a core part of it, the routines that finds chunks with different major
modes (corresponding to PHP, HTML etc). That fixed some serious bugs. At
the moment I am trying to fix one of the new bugs I introduced then
(https://bugs.launchpad.net/nxhtml/+bug/388729)...

Doing what you want is much simpler than what you expect. To edit as
mixed PHP/HTML you just do

   M-x nxhtml-mumamo-mode

(Or, if you are using Emacs 22, "M-x html-mumamo-mode".)

To get the files recognized as mixed PHP/HTML you just add this to auto-
mode-alist in your .emacs:

   (add-to-list 'auto-mode-alist '("\\.ctp\\'"      . html-mumamo-mode))

-- 
You received this question notification because you are a member of
nXhtml, which is an answer contact for nXhtml.