适用于 Mac 的轻量级编辑器,可突出显示所有出现的单词

发布于 2024-08-20 03:11:14 字数 271 浏览 5 评论 0原文

我的问题与此类似:如何突出显示单词中所有出现的单词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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

追风人 2024-08-27 03:11:14

感谢您的所有提示。我尝试了各种替代方案,最终发现 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

┼── 2024-08-27 03:11:14

据我所知,唯一能做到这一点的 Mac 文本编辑器是 Xcode,但我不会将其准确地描述为“轻量级”。

The only Mac text editor I know of that does this is Xcode, but I wouldn't exactly describe this as "lightweight".

中性美 2024-08-27 03:11:14

您可以在 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.

无力看清 2024-08-27 03:11:14

我不确定你是否愿意,但你可以考虑为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/

冷月断魂刀 2024-08-27 03:11:14

vim,在终端中运行是非常轻量级的,并且可以做到这一点。

vim file.txt
:set hlsearch
/word

如果您只喜欢 GUI 应用程序,可以下载 MacVim。

vim, running in a Terminal is very lightweight and will do this.

vim file.txt
:set hlsearch
/word

If you only like GUI apps there is MacVim out there for downloading.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文