<p>当启用<code>Show Invisibles</code>时,textmate2的<a href="https://api.textmate.org/downloads/release" rel="noreferrer">latest version</a>突出显示空格。在</p>
<p><img src="https://i.stack.imgur.com/aQ0ct.png" alt="invisibles"/></p>
<hr/>
<p><strong>编辑:</strong></p>
<p>您甚至可以通过修改<code>.tm_properties</code>文件中的<code>invisiblesMap</code>属性,自定义哪些不可见项用哪个字符显示。在</p>
<p>从TextMate changelog:</p>
<blockquote>
<p>This can be set to a string which is used to control which glyphs are used for invisible characters. Add either <code>\n</code>, <code>\t</code>, or a space to the string, followed by the glyph that should be used to render the character, or prefix it with <code>~</code> to disable rendering of that character. For example to disable rendering of spaces and render tabs as <code>┊</code> add this to <code>.tm_properties</code>: <code>invisiblesMap = "~ \t┊"</code>. </p>
</blockquote>
<h3>旁注:</h3>
<p><strong>不再是这种情况,功能已恢复。</strong></p>
<blockquote>
<p>According to the Log of 2013-10-23 (v2.0-alpha.9489): "Show Invisibles will no longer treat space as an invisible (which was added in previous build) as it was causing issues with right-to-left rendering and combining marks used after spaces. The feature might be back, but needs to be implemented differently."</p>
</blockquote>