lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snippet authorship


From: Valentin Villenave
Subject: Re: snippet authorship
Date: Thu, 24 Apr 2008 10:24:12 +0200

2008/4/24 Graham Percival <address@hidden>:

>  Compromise: could makelsr.py ignore
>  % GDB: ...
>  lines? That way we could tag snippet authorship with
>  % GDB: Thanks to Foo Bar for this snippet
>  without cluttering up the official docs.

Yes, but that way the author's name won't be displayed at all (even
the comment will be stripped out).
I don't have any solution, but it's a pity that we always have to
print either the *whole* code verbatim or no code at all.

Could there be a way to implement a new command such as

@lilypond[fragment, quote, selectedVerbatim]
{
  %% These comments won't appear in the quoted output

  %% This snippet was provided by BlahBlahBlah
  %% This snippet was made in October 2006, for version 2.8.2


\tag #'selectedVerbatimStart

   c d e f
   \override Stuff.CoolGrob #'cool-property = #1
   c d e f

\tag #'selectedVerbatimEnd

  %% This code won't be printed either (but will be compiled)
  \repeat unfold 8 {c d e f }
}
@end lilypond

This could be a valuable tool for documentation as well. Thoughts?

Cheers,
Valentin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]