I recently used a web implementation of lilypond to produce a score snippet on a question here.
I've been looking through the meta, and it seems that I am by no means the first person to think lilypond support on SE would be a great idea, but that, alas, this is incredibly difficult to implement.
Still though, I thought I might like to include my lilypond source code in the question itself, for a couple of reasons: In general, having the source directly in the question rather than relying on an external image host just seems better. But more specifically, it would allow other users to edit the score snippet I gave. For example, if I made a typo (which I actually did), then another user could quite easily correct that. Or alternatively, if I myself wanted to add to or modify the example I gave, if the source was included in the question it wouldn't rely on me being on the same computer, and having saved it somewhere.
So my question is, despite Lilypond not being natively supported by SE, is it still a good idea to include the source markup in the question. And if so, how?
My first thought was to simply put it in as a hidden comment, which only shows up when editing the source. I'm not sure this is possible though, as an HTML comment block (
-->) doesn't work when the music snippet contains angle brackets.
Including the full source code in the question itself seems like overkill, as it would detract visually from the question and add unnecessary clutter.
I suppose something like the below, while still outsourcing the code to an external host, is still an improvement on just a static image.
Do any of you have any opinions on what might be good standard practice for this. It certainly seems to me that including the source used to produce a score within the question/answer itself is advantageous, but what's the best way to do that?