unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marko Myllymaki <firstname.lastname@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: multiple languages in one file, nxhtml-mode...
Date: Thu, 05 Mar 2009 13:19:35 +0200	[thread overview]
Message-ID: <czOrl.9551$cu3.3410@uutiset.elisa.fi> (raw)

I'm trying to get nxhtml-mode to work - it would really help editing
documents with many different code blocks...  I need at least correct
indenting of code lines, line wrap and syntax hilighting say with php,
xhtml, css, javascript, xml... automatic validation when editing is not
so important...

If someone could suggest "simpler mode" to achieve these goals, I would
really appreciate that.

Previously I used only PHP-mode (and others for other languages) but it
does not work with multiple source code blocks.

Problems with nxhtml-mode:
I load a file called something.php which has php-blocks <? ?> and xhtml
and possibly javascript... When I scroll it, emacs mode line changes the
context (PHP/nxhtml - nXhtml/nxhtml) quite nicely.

But then... when editing

Problems: lots of lisp or other errors interrupt editing and drive me
crazy, like:

"Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
    rng-after-change-function(384 385 0)
    self-insert-command(1)
    newline(nil)
    call-interactively(newline nil nil)"

"Variable binding depth exceeds max-specpdl-size"

What are these?

Font lock mode does usually not work - syntax hilighting does not always
change when changing code blocks...

My environment:
Debian Linux
GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of
2009-02-22 on elegiac, modified by Debian
(emacs snapshot... but v22 did not work either)
nXhtml mode version 1.75
nXML mode version 20041004


             reply	other threads:[~2009-03-05 11:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 11:19 Marko Myllymaki [this message]
2009-03-05 17:58 ` multiple languages in one file, nxhtml-mode Richard Riley
2009-03-06  7:31   ` Marko Myllymaki
2009-03-06 17:02     ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='czOrl.9551$cu3.3410@uutiset.elisa.fi' \
    --to=firstname.lastname@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).