The pygments LilyPond lexer is actually going ok. I'm still copying over the info from python-ly, but I've worked it out and so far it's working without errors. I will have to learn some regex tricks in the next few days. Perhaps another week and it will be ready for some testing.
Craig On Wed., 15 Jan. 2020, 12:16 pm Craig Dabelstein, < craig.dabelst...@gmail.com> wrote: > Federico, > > Is it just me or is the documentation for Pygments really hard to > understand? I can't even find anywhere they discuss the setup.py file. > > I've opened a repo (https://github.com/craigdab/pygments-lilypond-test) > and cut and paste from other peoples repositories as a start, but I really > have no idea what I'm doing. > > Craig > > > On Wed, 15 Jan 2020 at 10:38, Craig Dabelstein <craig.dabelst...@gmail.com> > wrote: > >> Thank you gentlemen, >> >> I'll have a go at taking the python-ly work and seeing if I can use it >> work to make syntax highlighting with pygments. It's highly possible that I >> will totally fail, but I'll give it a try. >> >> Craig >> >> >> On Tue, 14 Jan 2020 at 23:38, Federico Bruni <f...@inventati.org> wrote: >> >>> Il giorno mar 14 gen 2020 alle 12:34, Urs Liska <li...@openlilylib.org> >>> ha scritto: >>> > Pygments is also what Pandoc uses for its syntax highlighting, so that >>> > would also make sense for that (e.g. generating PDF documentation from >>> > Markdown). >>> >>> Are you sure? >>> I think that pygments is the name of the default style in Pandoc, but >>> the highlight library is a Haskell library called skylighting: >>> https://pandoc.org/MANUAL.html#syntax-highlighting >>> https://github.com/jgm/skylighting >>> >>> It seems Wilbert contributed the definitions for lilypond syntax: >>> >>> https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/lilypond.xml >>> >>> About 10 days ago I wanted to share this in the open issue in >>> Frescobaldi tracker but I forgot to do it. >>> I remember I found the lilypond file definition somewhere else... >>> >>> >>> >>> >> >> -- >> Craig Dabelstein >> Owner >> Maxime's Music >> M: 0404884173 >> A: 19 Twelfth Ave, Kedron QLD 4031, Australia >> W: concertbandmusicstore.com <https://concertbandmusicstore.com/>E: >> cr...@concertbandmusicstore.com <cr...@concertbandmusicstore.com> >> <https://www.facebook.com/maximesmusic.com.au> >> <https://www.linkedin.com/in/maximes-music> >> >> <https://www.designhill.com/email-signature-generator> >> >> > > > -- > Craig Dabelstein > Owner > Maxime's Music > M: 0404884173 > A: 19 Twelfth Ave, Kedron QLD 4031, Australia > W: concertbandmusicstore.com <https://concertbandmusicstore.com/>E: > cr...@concertbandmusicstore.com <cr...@concertbandmusicstore.com> > <https://www.facebook.com/maximesmusic.com.au> > <https://www.linkedin.com/in/maximes-music> > > <https://www.designhill.com/email-signature-generator> > >