推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Trim21
V2EX  ›  Python

pycharm 的 re.compile 正则语法高亮对应的是哪几个选项?

  •  
  •   Trim21 ·
    Trim21 · Sep 13, 2023 · 2644 views
    This topic created in 1127 days ago, the information mentioned may be changed or developed.
    之前一直用的是 https://plugins.jetbrains.com/plugin/12124-material-theme-ui-lite 这个插件提供的 Material Darker 配色方案。今天换成 Monokai 之后才发现这个配色方案的 `re.compile` 没有高亮。

    尝试修改了一些配色方案的选项,在 monokai 配色方案时修改 editor/color scheme/regexp 的选项的确可以影响这里的高亮颜色,但是使用 Material Darker 这个配色方案时这些选项却完全无效,无论怎么设置都只剩灰色。

    但是如果我单独创建一个`*.regexp` 文件,这个文件的内容是可以作为正则正常进行语法高亮的。


    不知道有没有 v 友遇到过类似的情况?

    Material Darker:



    monokai:



    仅仅更换了编辑器的配色方案,没有修改任何其他选项

    (这里说的是配色方案,仅在编辑器内起作用,不是会整个 ide 的主题选项)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 19:15 · PVG 03:15 · LAX 12:15 · JFK 15:15
    ♥ Do have faith in what you're doing.