lilypond syntax highlighting block comments

lilypond syntax highlighting block comments

3
NewbieNewbie
3

    Mar 28, 2006#1

    In lilypond (a language for writing sheet music see lilypond.org) you can use comments for line with a % character:

    %this is a comment

    but also you can use a block comments:
    %{
    this is a block comment
    %}

    (Yes the characters are correctly placed)
    I created a starterline for my lilypond wordfile part like this:
    /L12"Lilypond" Noquote Line Comment = % Block Comment On = %{ Block Comment Off = %}

    But the block comments don't work? Any ideas?

    thanx in advance,

    Rooc

    PS tried to upload the lilypond wordfile part in a zip but it didn't work. those interested in it's here: rooc.nl/lilypond.txt

    6,686585
    Grand MasterGrand Master
    6,686585

      Mar 28, 2006#2

      You have the same comment problem as described at
      The block comment doesn't work for me
      Line comment overtaking the block comment

      The "Line Comment Num = 2% " (without the ") as explained in the forum topics listed above is also the best solution for lilypond. You only have to make sure that after a % line comment you always have a space following the % character.

      Your language definition will start as follows:

      /L12"Lilypond" Noquote Line Comment Num = 2%  Block Comment On

      Note: There are exactly 2 spaces between 2% and Block Comment On.

      And you should remove the \ character from the list of delimiters.
      Best regards from an UC/UE/UES for Windows user from Austria