在 canopy 中自定义语法高亮 [英] Customize syntax highlightin in canopy

查看:55
本文介绍了在 canopy 中自定义语法高亮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在全新(干净)安装的 Mac OS X Mountain Lion 中安装了 Enthought Canopy.到目前为止,它似乎运行稳定且快速.我唯一的问题是我想自定义编辑器和控制台的语法突出显示.没有偏好允许我觉得很奇怪,因为嵌入式编辑器只是 Editra,一个高度可定制的编辑器.我想:

I just installed Enthought Canopy in a freshly (clean) installed Mac OS X Mountain Lion. So far, it seems to run stable and fast. My only problem is that I want to customize the syntax highlighting of both the editor and the console. There are no preferences to allow for that what I find quite strange because the embedded editor is just Editra, a highly customizable editor. I want to:

  • 编辑器.由于我之前使用过 Editra,我可以将旧样式文件 (.ess) 放在哪里以突出显示语法,以便覆盖默认文件?
  • 交互式窗口.如何禁用交互式窗口中的语法突出显示?我尝试了魔术功能%colors nocolor",但这没有任何作用.我看到编辑器有一个单色主题,但我想要一个没有语法高亮的深色背景.

谢谢.

推荐答案

看来答案是......还没有.我通常会在我的 python 代码中插入很多注释,并将所有 #COMMENTS 颜色设置为浅灰色,因此它们不会分散主要逻辑的注意力,但在 Enthought Canopy 中无法做到这一点.太糟糕了.希望这个能力很快就会被添加.

It appears the answer is.... Not Yet. I usually insert a lot of comments into my python code, and COLOR ALL #COMMENTS LIGHT GRAY, so they are not so distracting from the main logic, but have been unable to do that in Enthought Canopy. Too bad. Hopefully this ability will be added soon.

这篇关于在 canopy 中自定义语法高亮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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