Sublime Text 2 中的非 ASCII 字符高亮显示 [英] Non-ascii character highlight in Sublime Text 2

查看:41
本文介绍了Sublime Text 2 中的非 ASCII 字符高亮显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Sublime 几个月了,非常享受,直到昨天出现损坏,我需要重新安装.

I have been using Sublime for a few months with great enjoyment until yesterday when something was corrupted and I needed to reinstall.

因为我认为我已经记住了我使用的所有软件包,所以我没有保留备份并完全卸载/重新安装应用程序和应用程序支持文件夹.

Since I thought I had all the packages I used memorized, I didn't keep a backup and did a full uninstall/reinstall of the app and the application support folder.

我真正喜欢的功能之一是,如果我从其他来源(如 Word)粘贴副本,则所有字符(如卷曲引号等)都会以粉红色突出显示.

One of the features I really liked was that if I pasted in copy from another source, like Word, all the characters like curly quotes, etc. would be highlighted in hot pink.

这不再有效,我相信它一定是我安装的一个包,但没有意识到这一点.如果您必须将文本转换为 HTML 内容,它会节省大量时间.

This is no longer working and I believe it must've been a package I installed and didn't realize it. It saves a lot of time if you have to convert text to HTML content.

有谁知道这是什么包或如何在 ST2 中恢复这种行为?

Does anyone know what package that is or how to get that behavior back in ST2?

我在 Google 上到处都是,无法弄清楚这是如何工作的.我扔掉我的设置/包的错误.

I have been all over Google and cannot figure out how this was working. My mistake for throwing my settings/packages away.

推荐答案

我最近写了一个专门解决这个问题的插件:突出显示非 ascii 字符.https://github.com/TuureKaunisto/highlight-dodgy-chars

I recently wrote a plugin dedicated to this exact problem: highlighting non-ascii characters. https://github.com/TuureKaunisto/highlight-dodgy-chars

该插件遵循白名单原则:设置中未列入白名单的所有非 ascii 字符都会突出显示.

The plugin works on a whitelist principle: all non-ascii characters that are not whitelisted in the settings get highlighted.

这篇关于Sublime Text 2 中的非 ASCII 字符高亮显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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