|
From: | Simon Albrecht |
Subject: | Allura code highlighting |
Date: | Wed, 9 Sep 2015 15:56:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
Hello,Trevor has already introduced a warning to use ~~~~ delimiting for .ly code blocks. Now I noticed that Allura imposes some code highlighting by default, and pygments (the tool used) doesn’t make a good guess on the language. Unfortunately, it doesn’t support LilyPond (yet?). I couldn’t figure out how to turn of highlighting, but I can recommend using TeX until we have a better solution:
" ~~~~ :::TeX % here comes the lily code ~~~~ "Wilbert, excuse my straightforwardness. Allura uses a python tool, Pygments, for code highlighting, and I thought it might be possible to reuse code from python-ly to provide a LilyPond lexer for Pygments. Perhaps you could take a look at the documentation on <http://pygments.org/docs/> and see if that is possible?
Best regards, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |