简体   繁体   English

Sublime Text 2,就像emacs中的块突出显示一样

[英]Sublime Text 2 like block highlighting in emacs

Is there an emacs plugin which creates these nice vertical lines for the code blocks like in Sublime Text 2? 是否有一个emacs插件为Sublime Text 2中的代码块创建了这些漂亮的垂直线? (See attached screenshots for what I mean). (参见附页截图我的意思)。

在此输入图像描述

Please see highlight-indentation: 请参阅highlight-indentation:

https://github.com/antonj/Highlight-Indentation-for-Emacs/ https://github.com/antonj/Highlight-Indentation-for-Emacs/

Unfortunately the current version is very simple and it draws character-wide columns instead of thin lines so it doesn't look very appealing. 不幸的是,目前的版本非常简单,它绘制了字符宽的列而不是细线,因此它看起来不太吸引人。 But at least it's a start. 但至少这是一个开始。

I do not use it by default - if I'm lost then I do Mx highlight-indentation . 我默认不使用它 - 如果我输了,那么我会做Mx highlight-indentation

It's not quite the same thing, but you get a similar benefit from the features mentioned here: 这不是一回事,但你从这里提到的功能中获得了类似的好处:

http://www.emacswiki.org/emacs/HighlightCurrentColumn http://www.emacswiki.org/emacs/HighlightCurrentColumn

http://www.emacswiki.org/emacs/VlineMode http://www.emacswiki.org/emacs/VlineMode

Vline can use a thin line (or a face). Vline可以使用细线(或面)。 Column-marker highlighting stays put (doesn't move with the cursor), and you can highlight any number of columns, but it uses a face, not a thin line. 列标记突出显示保持不变(不随光标移动),您可以突出显示任意数量的列,但它使用的是面,而不是细线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM