[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: temp stop syntax coloring on region of mismatched quotes
From: |
Paul R |
Subject: |
Re: temp stop syntax coloring on region of mismatched quotes |
Date: |
Thu, 04 Dec 2008 12:00:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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