如何在崇高文字3中突出显示变量?就像在netbeans中一样
您的问题不是很清楚,但是这里有一些选择。首先,如果您只是想使变量以不同的方式突出显示,则您需要一种配色方案,其选项要比默认的Monokai多。Package Control有很多可用的方法,但是我知道可以使用的一个特别有效的方法(因为我是它的作者)是Neon:
You can use the excellent tmTheme Editor to see how this or hundreds of other themes will look (sort of) in different languages. (I say "sort of" because the highlighting engine used on the website is different than the one in Sublime, so there will be some differences. Overall it's pretty good, though.)
On the other hand, if you're trying to highlight all the instances of the $page
variable, you'll have to do two things. First, double-click on $page
to select it. Then, select Find -> Quick Find All
(or use its keyboard shortcut) to select all the instances of $page
in the document:
The gutter icons and colored underlines are from the BracketHighlighter plugin
不幸的是,这是在使用PHP和其他语言(例如JavaScript,以a$
或其他符号表示变量)时使此功能生效的唯一方法。例如,如果我们要使用Python,则只需双击即可,page
如下所示:
如您所见,所有其他实例的page
周围都有框。此行为被硬编码为Sublime,因此尽管可以打开和关闭它,但不能对其进行修改或告诉它以任何方式识别其他字符。
祝你好运!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句