From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Font locking in PSGML mode
Date: Wed, 12 Mar 2003 10:30:39 +0100 [thread overview]
Message-ID: <84wuj5szi8.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: v6t4tqpp83n715@corp.supernews.com
chris <chrisl_ak@hotmail.com> writes:
> When I load a file into Emacs that starts sgml mode, there is no
> syntax coloring. After I parse the DTD, the font coloring starts
> working, but only on text that I manually move my cursor through. As I
> move through each element, it becomes colorized.
>
> Is there a way to get this to happen automatically? I have the
> following in my .emacs
Note that psgml does NOT use font-lock for its syntax highlighting.
This is because it is difficult to design regular expressions that do
the right thing: with the right SGML declaration, you can tell the
system to use different characters instead of "<" and ">", for
example.
But I've been using xxml.el for XML sources. I think xxml.el uses
font-lock. (But I haven't looked.) xxml.el works for HTML, too. So
I think as long as your SGML files use the normal pointy brackets
syntax and the SGML declaration doesn't do weird things, you should
be fine.
--
A preposition is not a good thing to end a sentence with.
next prev parent reply other threads:[~2003-03-12 9:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-12 1:56 Font locking in PSGML mode chris
2003-03-12 9:30 ` Kai Großjohann [this message]
2003-03-13 4:16 ` chris
2003-03-13 9:00 ` Kai Großjohann
2003-03-14 19:05 ` Karl Eichwalder
2003-03-15 0:02 ` Chris
2003-03-13 6:11 ` Karl Eichwalder
2003-03-12 17:02 ` Kevin Rodgers
2003-03-13 4:17 ` chris
2003-03-13 18:27 ` Kevin Rodgers
2003-03-15 0:00 ` Chris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84wuj5szi8.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.