From: Daniel Pfeiffer <occitan@esperanto.org>
Subject: Re:can font-lock hide parts of text?
Date: Fri, 26 Dec 2003 10:17:40 +0100 [thread overview]
Message-ID: <20031226101740.44bd1b8f.occitan@esperanto.org> (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/
reply other threads:[~2003-12-26 9:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031226101740.44bd1b8f.occitan@esperanto.org \
--to=occitan@esperanto.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).