Customize syntax highlightin in canopy

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 09:32:06

问题


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:

  • Editor. As I was using Editra before, where can I place my old style file (.ess) for the syntax highlighting such that it will overwrite the default one?
  • Interactive window. How do I dissable the syntax highlighting from the interactive window? I tried the magic function "%colors nocolor" but this makes nothing. I saw there is a monochrome theme for the editor, but I want a Dark brackground with no syntax highlighting.

Thanks.


回答1:


Glad you're finding Canopy useful.

Neither of these options is supported at this time. Canopy is designed to be an easy-to-learn environment, with relatively few configuration options, primarily for scientists, engineers, and analysts, rather than for professional developers who usually already have an editor of choice. We will slowly add features when there is a strong demand and/or use-case for it.

FWIW, Canopy does not embed Editra, though it does use the same syntax highlighting toolkit as does Editra (Pygments).




回答2:


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.



来源:https://stackoverflow.com/questions/16526556/customize-syntax-highlightin-in-canopy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!