【问题标题】:How can I disable syntax highlighting in SublimeREPL, without setting syntax to plain text?如何在不将语法设置为纯文本的情况下禁用 SublimeREPL 中的语法突出显示?
【发布时间】:2021-08-02 07:20:21
【问题描述】:

当我在 SublimeREPL 中运行程序时,我经常会看到高亮的反斜杠 '' 以粉红色显示。

我可以解决它,但它很烦人,如果我可以禁用它会很棒。我在其他帖子上读到,您可以将语法转换为纯文本,但我喜欢使用彩色单词,所以不希望这样做。我只想删除粉红色突出显示。

Screenshot of SublimeREPL with syntax highlighting

谢谢大家!

【问题讨论】:

    标签: syntax highlight sublimerepl


    【解决方案1】:

    转到 Sublime Text > Preferences > Package Settings > SublimeREPL > Settings - User

    (如果你的“设置-用户”为空,请先复制“设置-默认”的内容)

    在“repl_view_settings”下:添加:

    这是第一个选项:第一个选项是没有语法高亮全部白色。

    // standard sublime view settings that will be overwritten on each repl view
    // this has to be customized as a whole dictionary 
        "repl_view_settings": {
        "translate_tabs_to_spaces": false,
        "auto_indent": false,
        "smart_indent": false,
        "spell_check": false,
        "indent_subsequent_lines": false,
        "detect_indentation": false,
        "auto_complete": true,
        "line_numbers": false,
        "gutter": false,
        "syntax": "Packages/Text/Plain text.tmLanguage"
    },
    

    enter image description here

    这是第二个选项:第二个选项基于 unix 语法高亮显示。

    // standard sublime view settings that will be overwritten on each repl view
    // this has to be customized as a whole dictionary 
        "repl_view_settings": {
        "translate_tabs_to_spaces": false,
        "auto_indent": false,
        "smart_indent": false,
        "spell_check": false,
        "indent_subsequent_lines": false,
        "detect_indentation": false,
        "auto_complete": true,
        "line_numbers": false,
        "gutter": false,
        "syntax": "Packages/ShellScript/Shell-Unix-Generic.tmLanguage"
    },
    

    enter image description here

    【讨论】:

      猜你喜欢
      • 2021-12-19
      • 2015-08-26
      • 2016-11-29
      • 1970-01-01
      • 2016-04-28
      • 2022-11-05
      • 1970-01-01
      • 2022-12-31
      • 2020-08-28
      相关资源
      最近更新 更多