unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30263: 26.0.91; whitespace-mode in mhtml-mode
@ 2018-01-26 20:02 Charles A. Roelli
  2019-07-14 17:29 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Charles A. Roelli @ 2018-01-26 20:02 UTC (permalink / raw)
  To: 30263

src/emacs -q
C-x C-f test/manual/indent/html-multi-2.html RET
M-x whitespace-mode RET

It looks like whitespace is not shown within <style> (CSS) and <script> (JS)
tags the same way as it is in HTML parts of the buffer.  For example, line 14
correctly shows as:

        <style type="text/css">

with a lightly-colored "»" in column 1, and a lightly-colored leading
whitespace, whereas line 15 shows as:

»       h1 {

with no coloring, even though the leading whitespace is the same (one TAB
character).





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#30263: 26.0.91; whitespace-mode in mhtml-mode
  2018-01-26 20:02 bug#30263: 26.0.91; whitespace-mode in mhtml-mode Charles A. Roelli
@ 2019-07-14 17:29 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-14 17:29 UTC (permalink / raw)
  To: Charles A. Roelli; +Cc: 30263, Tom Tromey

charles@aurox.ch (Charles A. Roelli) writes:

> src/emacs -q
> C-x C-f test/manual/indent/html-multi-2.html RET
> M-x whitespace-mode RET
>
> It looks like whitespace is not shown within <style> (CSS) and <script> (JS)
> tags the same way as it is in HTML parts of the buffer.  For example, line 14
> correctly shows as:
>
>         <style type="text/css">
>
> with a lightly-colored "»" in column 1, and a lightly-colored leading
> whitespace, whereas line 15 shows as:
>
> »       h1 {
>
> with no coloring, even though the leading whitespace is the same (one TAB
> character).

It looks like none? some? of the font locking keywords set up by
whitespace mode are in effect in the CSS bits, but they are in effect in
the HTML bits?  I'm guessing this has something to do with mhtml-mode,
so perhaps Tom has some insights here...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-14 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 20:02 bug#30263: 26.0.91; whitespace-mode in mhtml-mode Charles A. Roelli
2019-07-14 17:29 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).