简体   繁体   English

是否可以在emacs中突出显示插值的perl变量?

[英]Is it possible to highlight interpolated perl variables in emacs?

Recently I've started using emacs and after overcoming a number of hurdles in making cperl-mode operate in a way that is agreeable I've become stumped by this problem. 最近我开始使用emacs并克服了许多障碍,使cperl-mode以一种令人愉快的方式运行,我已经被这个问题困扰了。 Currently I have all scalars in regular use being highlighted except for where they are interpolated. 目前,除了内插的位置外,我还会突出显示常规使用的所有标量。 Is such syntax highlighting possible under this mode? 在这种模式下,这种语法突出显示是否可行? Currently I'm using emacs 23.1 and jrockway's cperl-mode 5.23 目前我正在使用emacs 23.1和jrockway的cperl-mode 5.23

Thanks 谢谢

It won't highlight interpolated variables in strings, but it will do it in regular expressions. 它不会突出显示字符串中的插值变量,但它会在正则表达式中执行。 I'll bet that could be adapted by somebody who knows elisp. 我敢打赌,这可能是由了解elisp的人改编的。

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

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