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).

share
1  
Another solution could be a different notation for jTab separate from the one for code. –  Ben Alpert Jun 23 '11 at 18:27
1  
+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
1  
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

1 Answer 1

up vote 13 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.

EDIT:

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.

share
    
It'd be nice if <pre> would eat an initial newline. –  luser droog Oct 6 '12 at 6:18
1  
That's HTML spec; pretty sure we can't/shouldn't change it. –  NReilingh Oct 9 '12 at 18:51

You must log in to answer this question.

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