From: Paul R <paul.r.ml@gmail.com>
To: Xah Lee <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: temp stop syntax coloring on region of mismatched quotes
Date: Thu, 04 Dec 2008 12:00:17 +0100 [thread overview]
Message-ID: <871vwo9pdq.fsf@gmail.com> (raw)
In-Reply-To: <0712fc75-1c84-4b46-aaec-4417c133030d@c36g2000prc.googlegroups.com> (Xah Lee's message of "Wed, 3 Dec 2008 18:58:10 -0800 (PST)")
Hi Xah,
Xah> sometimes in some source code, the double quote doesn't match and
Xah> makes the rest of the code from that point on syntax colored wrong.
Xah> Very annoying.
Xah> Is there anyway to make it not syntax color the region of text
Xah> where the quote becomes odd?
I also often face this problem. I don't know much of how to make
a syntax highlighting mode for emacs, but AFAIU fontlock only works on
current line. For that reason, modes often re-implement their own
search-forward based fontlock system for quoted strings.
I guess the major mode should be fixed to detect what is a quote for
quoting string and what is not.
On Wed, 3 Dec 2008 18:58:10 -0800 (PST), Xah Lee <xahlee@gmail.com> said:
Xah> <pre class="code"> <img src="\([^"]+\)" alt="math surface"
Xah> width="\([0-9]+\)" height="\ ([0-9]+\)"> </pre>
BTW, is this XHTML compliant ?
--
Paul
next prev parent reply other threads:[~2008-12-04 11:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 2:58 temp stop syntax coloring on region of mismatched quotes Xah Lee
2008-12-04 11:00 ` Paul R [this message]
[not found] ` <mailman.1910.1228388432.26697.help-gnu-emacs@gnu.org>
2008-12-04 11:09 ` Andreas Politz
2008-12-04 16:43 ` Xah Lee
2008-12-04 16:45 ` Drew Adams
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=871vwo9pdq.fsf@gmail.com \
--to=paul.r.ml@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=xahlee@gmail.com \
/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.