如何在SublimeREPL中禁用语法高亮显示,而不将语法设置为纯文本



当我在SublimeREPL中运行程序时,我经常会得到突出显示的反斜杠",它们显示为粉红色。

我可以解决它,但它很烦人,如果我能禁用它就太好了。我在其他帖子中读到,你可以将语法转换为纯文本,但我喜欢有彩色单词,所以我不喜欢这样做。我只想去掉粉红色的突出显示。

SublimeREPL的屏幕截图,语法突出显示

谢谢大家!

转到Sublime文本>首选项>程序包设置>SublimeREPL>设置-用户

(如果您的"设置-用户"为空,请首先复制"设置-默认"的内容(

在";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"
},

在此处输入图像描述

这是第二个选项:第二个选择基于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"
},

在此处输入图像描述

最新更新