unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* colorizing empty space
@ 2010-12-16 19:13 Ted Zlatanov
  2010-12-20 10:50 ` Chong Yidong
  2011-01-25  8:24 ` Daniel Colascione
  0 siblings, 2 replies; 16+ messages in thread
From: Ted Zlatanov @ 2010-12-16 19:13 UTC (permalink / raw)
  To: emacs-devel

Say you have a buffer with this text (showing newlines as \n)

Hello\n
there\n
everyone\n

and you want to colorize the text background.  You'd end up with a
ragged appearance on the right, because the text ends at the newlines,
or (if you choose to colorize the newlines) the background would extend
to the right margin of the buffer, which looks awful when rendering
readable text in very wide buffers.

I wonder if there's a way to give all the lines max(paragraph lines)+1
width using "visual" space, so at least one "visual" space is added on
the right (shown with x):

Helloxxxx\n
therexxxx\n
everyonex\n

which can then be colorized with the proper background.  I'd like this
to happen without actually modifying the text (so if copied it will
retain the original content), so I was wondering if font-lock or some
other Emacs wizardry could be used to create this "visual" space effect.

Thanks
Ted




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

end of thread, other threads:[~2011-01-26  6:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 19:13 colorizing empty space Ted Zlatanov
2010-12-20 10:50 ` Chong Yidong
2011-01-24 18:17   ` Ted Zlatanov
2011-01-24 22:16     ` Lars Ingebrigtsen
2011-01-24 23:02       ` Lars Ingebrigtsen
2011-01-24 23:14         ` Lars Ingebrigtsen
2011-01-24 23:26           ` Lars Ingebrigtsen
2011-01-25  8:24 ` Daniel Colascione
2011-01-25 10:17   ` Lennart Borgman
2011-01-25 12:51     ` Daniel Colascione
2011-01-26  2:28       ` Stephen J. Turnbull
2011-01-26  3:23         ` Stefan Monnier
2011-01-26  4:46           ` Miles Bader
2011-01-26  6:28             ` Eli Zaretskii
2011-01-26  6:50               ` Miles Bader
2011-01-26  6:52               ` Daniel Colascione

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