适用于 Mac 的轻量级编辑器,可突出显示所有出现的单词
我的问题与此类似:如何突出显示单词中所有出现的单词Emacs 缓冲区
在 Notepad++ 编辑器中,有一个方便的功能:如果您在文本中选择一个单词(不一定是关键字),该单词会在整个文本中突出显示。 Mac 上有类似的轻量级编辑器吗?我尝试过Textwrangler和jedit,但他们似乎没有这个非常有用的功能。
My question is similar to this one: How to highlight all occurrences of a word in an Emacs buffer
In Notepad++ editor, there's a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Is there any similar way in a lightweight editor for Mac? I've tried Textwrangler and jedit, but they don't seem to have this very useful feature.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
感谢您的所有提示。我尝试了各种替代方案,最终发现 jEdit 对于此功能有一个很好的插件:“突出显示”插件中的“突出显示(缓冲区范围)”选项
Thanks for all the tips. I've tried out the various alternatives and ended up finding that jEdit has a good plugin for this feature: The "Highlight (Buffer scope)" option in the "Highlight" plugi
据我所知,唯一能做到这一点的 Mac 文本编辑器是 Xcode,但我不会将其准确地描述为“轻量级”。
The only Mac text editor I know of that does this is Xcode, but I wouldn't exactly describe this as "lightweight".
您可以在 TextMate 中实现这一点 - 不是开箱即用的 - 但您可以使用您擅长的任何脚本语言(通常使用 ruby)轻松实现它。存储库中甚至可能已经有一个插件/包。
You could to this in TextMate - not out of the box - but you could implement it fairly easily with whatever scripting language youre good with (ruby is whats normally used). There might even already be a plugin/bundle in the repository.
我不确定你是否愿意,但你可以考虑为textWrangler编写一个高亮插件。
我想你需要 BBE-sdk。这是他们关于开发插件的简介:http://www.barebones.com/support/develop/
I'm not sure how willing you are, but you can look into writing a highlight plug-in for textWrangler.
I think you'll need the BBE-sdk. Here's their blurb on developing plugins: http://www.barebones.com/support/develop/
vim,在终端中运行是非常轻量级的,并且可以做到这一点。
如果您只喜欢 GUI 应用程序,可以下载 MacVim。
vim, running in a Terminal is very lightweight and will do this.
If you only like GUI apps there is MacVim out there for downloading.