lyluatex icon indicating copy to clipboard operation
lyluatex copied to clipboard

Better syntax highlighting

Open uliska opened this issue 7 years ago • 4 comments
trafficstars

We wanted to look into how Pandoc produces syntax highlighting because this provides pretty nice highlighting for LilyPond code.

An alternative to look into would be to use Python and python-ly.

=> Check if python-ly can be talked into producing either LaTeX output or (better) Pygment items. See https://github.com/wbsoft/python-ly/issues/116

uliska avatar Feb 22 '18 15:02 uliska

As of Pandoc, it's a Haskell library, so IMHO not the way to go.

jperon avatar Feb 22 '18 22:02 jperon

Sure, but I can't imagine Pandoc does the highlighting all by itself, it surely uses "something", and maybe that is somehow accessible.

uliska avatar Feb 23 '18 06:02 uliska

That's what I mean: Pandoc uses a Haskell library for highlighting. That's accessible, but I don't think we should add a Haskell dependency to lyluatex.

jperon avatar Feb 23 '18 07:02 jperon

OK, I see.

Actually this isn't a lyluatex issue as we do provide proper support for anyone else to do highlighting. But to show people we know about the issue and have the wish for a better solution I keep the issue open, just labeled as wontfix.

uliska avatar Feb 23 '18 08:02 uliska