【问题标题】:emacs+perl: possible to get vim's syntax coloring style?emacs+perl:可以得到 vim 的语法着色风格吗?
【发布时间】:2011-11-02 10:54:25
【问题描述】:

我真的很喜欢(并且习惯于)vim 的 perl 程序的语法着色风格。

有没有办法在 emacs 下获得这种风格?我试过(香草)perl-modecperl-mode

如果有什么不同,我在终端中使用的是 Ubuntu 和 emacs23-nox。

【问题讨论】:

    标签: perl emacs syntax-highlighting vi


    【解决方案1】:

    语法着色是通过某种脚本完成的;由于 vim 和 emacs 使用完全不同的语法描述和脚本系统,显然不可能在 emacs 下自动获得 vim 语法着色。另一方面,您可以为 perl 构建自己的语法高亮模式,使用与 vim 相同的颜色和字体;这可能是一项大工作,但它是可行的。请参阅emacs documentation on font-lock-mode

    【讨论】:

      猜你喜欢
      • 2012-03-26
      • 2010-11-29
      • 1970-01-01
      • 1970-01-01
      • 2013-05-08
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      • 2010-11-04
      相关资源
      最近更新 更多