<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 15 Oct 2016, at 1:33, Greg wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Comment for jbuilder should be a #, but TM is putting a double slash. The files are Rails apps/views/<view>/xxx.json.jbuilder .
</div><div dir="auto">[…]
</div><div dir="auto">Can I change this? If so how?
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">Comment characters are based on the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">TM_COMMENT_START</code> etc. environment variables.</p>

<p dir="auto">If you use Bundles → Select Bundle Item… (⌃⌘T) and switch to settings, then you can enter <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">tm_comment</code> and see the current values for these variables.</p>

<p dir="auto">These would normally come from bundle settings items.</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Change file type to Ruby. Probably was JavaScript automatically.
</div><div dir="auto">
</div><div dir="auto">Did I change it to jS or is that something TM does.
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">On a clean install of TextMate, opening <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">foo.json.jbuilder</code> will treat it as plain text.</p>

<p dir="auto">If you change the language (via the status bar) then TextMate will remember this binding, and the default comment characters will follow.</p>

<p dir="auto">Normally it should only be necessary to set <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">TM_COMMENT_START</code> etc. if you want to override the default for the language, so simply setting the proper language (ruby) for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">jbuilder</code> files should be enough.</p>

<p dir="auto">Alternatively, you could put something like this in <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">~/.tm_properties</code>:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">[ *.json.jbuilder ]
TM_COMMENT_START = '# '
</code></pre>

<p dir="auto">But the best is to just bind <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">jbuilder</code> files to the proper language and rely on the defaults.</p>
</div>
</div>
</body>
</html>