[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax highlighting in the docs (issue 1005)
From: |
Federico Bruni |
Subject: |
Re: syntax highlighting in the docs (issue 1005) |
Date: |
Thu, 29 Dec 2011 12:22:17 +0100 |
I have a final draft (see files attached):
- colors are now similar to the highlighting of Frescobaldi 2
- fixed some regexps
- replaced a couple of hungry regexps with lists
I'm quite happy with this version.
Please let me know if you spot any error or missing item.
I'll send a patch to source-highlight in about a week.
In order to test it, I suggest using a 2.14 file.
Mutopia advanced search can help:
http://www.mutopiaproject.org/advsearch.html
The attached files must be in the working directory (i.e. where you
launch source-highlight).
Here's the command:
source-highlight -s lilypond.lang --style-file=lilypond.style -i
<file.ly> -o <file.html>
Thanks,
Federico
2011/12/21 Federico Bruni <address@hidden>:
> Il 20/12/2011 21:19, Graham Percival ha scritto:
>
>> On Tue, Dec 20, 2011 at 12:23:07AM +0100, Federico Bruni wrote:
>>>
>>> source-highlight -s lilypond.lang --style-file=lilypond.style -i
>>> test.ly -o test.html
>>
>>
>> Looks good, thanks for giving the exact command-line to use!
>>
>> It might be nice to include an example of real lilypond code,
>> although people probably have their own scores.
>>
>
> Yes, they should have it or they can get one from Mutopia.
>
> Using a real example is actually the best way to really test the regexps:
> I've just spotted a big error in the Scheme regexp.
> And it's not the only one.
>
> I'll post a better file one of these days.
>
> Cheers,
> Federico
lilypond.lang
Description: Binary data
lilypond.style
Description: Binary data
lang.map
Description: Binary data