python - Textmate Whitespace/Invisibles - 显示空格

标签 python textmate haml yaml coffeescript

有没有办法在 TextMate 中显示“软标签”(空格)? ViewShow Invisibles 如果您使用制表符进行缩进,则可以很好地跟踪缩进。不幸的是,在缩进是语义化的语言中,您通常必须使用空格。 (Python、YAML、HAML、CoffeeScript)

对于在 TextMate 中显示此空白或跟踪软缩进有什么建议吗?我应该继续坚持使用 Textmate2 吗?

也欢迎其他策略和建议。

最佳答案

latest version启用 Show Invisibles 时,TextMate 2 会突出显示空格。

invisibles


编辑:

您甚至可以通过修改 .tm_properties 文件中的 invisiblesMap 属性来自定义哪些不可见物与哪个角色一起显示。

来自 TextMate 更新日志:

This can be set to a string which is used to control which glyphs are used for invisible characters. Add either \n, \t, or a space to the string, followed by the glyph that should be used to render the character, or prefix it with ~ to disable rendering of that character. For example to disable rendering of spaces and render tabs as add this to .tm_properties: invisiblesMap = "~ \t┊".

旁注:

情况不再如此,功能已恢复。

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

关于python - Textmate Whitespace/Invisibles - 显示空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5740260/

相关文章:

python - 如何检测键盘模块的按键按下情况?

python - 属性错误 : 'module' object has no attribute 'graphviz_layout' with networkx 1. 11

c++ - 如何更新我的编译器以使用 C++11 功能?

ruby - 使用 HAML 包含 CSS 和 javascript 标签的简短方法

html - 将 HAML 代码转换为普通 HTML 和代码

python - 通过一个连接从网站上的多个 url 获取 html 数据

python - 如何在每次创建页面时生成一定长度的随机 url?

ruby-on-rails - TextMate 不适用于当前的 Ruby/Rails?

svn - 如何使用 TextMate 作为我的命令行颠覆消息编辑器?

ruby-on-rails - Rails CSS 不使用 Heroku 加载