如何使Emacs显示空格? [英] How do I make Emacs show blank spaces?

查看:198
本文介绍了如何使Emacs显示空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使Emacs显示空格(如空格,制表符,跳线等)。像Kate和Eclipse这样的许多其他编辑器都有这个功能,我发现看到代码由于空格和制表符(特别是Python)的混合而被缩进是非常有用的。

How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like Kate and Eclipse have this feature and I find it very useful to see when code is indent-broken because of mix of spaces and tabs (particularly Python).

推荐答案

WhiteSpace模式是可视化当前缓冲区中所有空格字符的Emacs小模式。

WhiteSpace mode is an Emacs minor mode for visualizing all white space characters in the current buffer.

http:// www。 emacswiki.org/emacs/WhiteSpace

下面是直接从Emacs维基中采取行动的WhiteSpace的屏幕截图,

Here is a screen shot of WhiteSpace in action taken directly from the Emacs wiki,

alt text http://www.emacswiki。 org / pics / static / WhiteSpaceOnLight.png

注意:WhiteSpace现在已经取代了BlankMode

Note: WhiteSpace has now replaced BlankMode

这篇关于如何使Emacs显示空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆