简体   繁体   English

如何突出显示Emacs中的选定行?

[英]How do I highlight selected lines in Emacs ?

I have tried searching this simple question in Google. 我尝试在Google中搜索这个简单的问题。 But didn't get the correct answer in the first few pages. 但是在最初的几页中没有得到正确的答案。

What I want to do is very simple: in a source file, highlight 5th line, and 15th line, and 23th line for comparison. 我想做的非常简单:在源文件中,突出显示第5行,第15行和第23行以进行比较。

I believe there should be a short-cut for it. 我相信应该有捷径。 Could anybody tell me ? 有人可以告诉我吗?

Thanks! 谢谢!

我认为如果您只想比较不同行中的代码,则可以使用narrow-to-regionindirect-buffer解决方案。用法:Emacs的窄域间接

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

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