I see that the jTab guitar tab plugin has been introduced at music.se now as it was on guitars.se, which I think is brilliant. But it should perhaps be only applied for questions tagged [guitar]. I just posted an answer to a Harmonica question, where I needed applied note names in a monospace font, and was converted to guitar tabs when I added. I had to simulate the spacing to get it work without code section.

This is how I wanted it to look (it shows like I want it here, as the guitar tab plugin is not applied here on meta):

C    D    E    F    G    A    B    C  
out  in   out  in   out  in   in   out 

Instead I had to do some hacking using the block quote format, and add some   to align the spacing to an approximate:

C - D - E - F - G - A - B - C
out in out in  out  in  in  out

On StackOverflow, the programming language to use for code coloring is based on the language specified in the question tag ([C++], [C#] etc. use C encoding. [VB6], [VB.NET] etc. use VB encoding and so forth).

Another solution could be a different notation for jTab separate from the one for code. – Ben Alpert Jun 23 '11 at 18:27
+1: Great idea! Clearly we need better support for jTab in the first place (there's no autorendering), but this would certainly alleviate some headaches. – NReilingh Jun 23 '11 at 19:16
I'm adding the bug tag to this since it wreaks absolute havok on Lilypond-related posts. – NReilingh Sep 16 '13 at 19:52
Agreed with this. And when it activates it's really unclear what's happening. – Michael Scott Cuthbert Oct 26 '13 at 13:56
@BenAlpert: I'm not sure I agree that jTab should not be in code section. Related to music, this is the perfect use of the code concept. What's missing is the concept of separating different "languages". I would also like the possibility to notate any form of music, which is another important request. – awe Oct 28 '13 at 8:57
up vote 17 down vote accepted

A temporary workaround I've found is to use HTML <pre></pre> (preformatted text) tags around stuff that would otherwise be malinterpreted by jTab.


Lilypond makes great use of << and >> symbols. These will get screwed up by <pre> tags unless you encode them as &lt;&lt; and &gt;&gt; respectively. Groan.

It'd be nice if <pre> would eat an initial newline. – luser droog Oct 6 '12 at 6:18
That's HTML spec; pretty sure we can't/shouldn't change it. – NReilingh Oct 9 '12 at 18:51
That's true, but AIUI we could create a CSS div class that would work the same as <pre> but with this extra feature. Quite probably not worth the effort, but possible IMO. – luser droog Oct 14 '14 at 4:39
Is there any news regarding this? We should make JTab optional (or remove it, no one ever uses it). I created a new meta post to discuss it. – Archundia May 14 '15 at 9:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .