转到 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