[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: temp stop syntax coloring on region of mismatched quotes
From: |
Xah Lee |
Subject: |
Re: temp stop syntax coloring on region of mismatched quotes |
Date: |
Thu, 4 Dec 2008 08:43:07 -0800 (PST) |
User-agent: |
G2/1.0 |
On Dec 4, 3:00 am, Paul R <paul.r...@gmail.com> wrote:
> 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 <xah...@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 ?
not sure, but is xhtml 4 strict valid. It's from:
• How To Add “alt=” To Image Tags With Emacs Lisp
http://xahlee.org/emacs/lisp_update_image_tag.html
Xah
∑ http://xahlee.org/
☄