* Re:can font-lock hide parts of text?
@ 2003-12-26 9:17 Daniel Pfeiffer
0 siblings, 0 replies; only message in thread
From: Daniel Pfeiffer @ 2003-12-26 9:17 UTC (permalink / raw)
> [A]This is a [G]Song
> I would like to be able to make an option that shows
> ^This is a ^Song
> where ^ is some mark (in a different color) that there there is a chord.
font-lock is the way to go! A list starting with the symbol face allows setting any number of properties. The matcher would have instead of a face name
("\\[[AG]\\]" (face default insible t))
or to display arbitrary strings
("\\[A\\]" (face my-A-face display "This hides [A]"))
("\\[G\\]" (face my-G-face display "This hides [G]"))
Untested, maybe you need ("..." (0 (face ...)))
coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer
--
lerne / learn / apprends / läramå Esperanto:
http://lernu.net/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-26 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-26 9:17 Re:can font-lock hide parts of text? Daniel Pfeiffer
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).