lilypond-devel
[Top][All Lists]
Advanced

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

Re: syntax colored lilypond code in docs?


From: Wilbert Berendsen
Subject: Re: syntax colored lilypond code in docs?
Date: Fri, 18 Jan 2008 20:15:47 +0100
User-agent: KMail/1.9.7

Hi Valentin,

op vrijdag 18 januari 2008, schreef je:
> 2008/1/18, Wilbert Berendsen <address@hidden>:
> > I create the syntax colored Lilycode HTML with Kate (KDE's editor). But
> > while busy I thought it would be nice to have (not too intrusive) colored
> > HTML in the Lilypond.org documentation. The syntax highlighting should be
> > added automagically, i.e. no *.itely files should be changed, just the
> > build process should add the highlighting somehow, using some python
> > script that could even get its words from the lily sourcecode like the
> > .vim files.
>
> Another possibility would be to use a simple JavaScript function to
> automatically color the code on the client side: perhaps you would be
> interested in having a look at the following script I adapted a few
> months ago, in an attempt to make a LilyPond web editor:
> http://valentin.villenave.info/lilypond/
>
> I implemented the full LilyPond API in regexps; then it is colored
> using a simple CSS sheet.

That's very interesting! I was already thinking about javascript highlighting. 
It could be even simpler as the lilypond web pages are read only. A 
single .js file would need to be included and it would automagically 
highlight the examples in the Lilypond manual. Which will make it more 
readable, I think. Esp. the difference between official commands and user 
commands.

cheers,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
"You must be the change you wish to see in the world."
        -- Mahatma Gandi




reply via email to

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