Can I turn off syntax highlighting in Sublime REPL tabs?

Is it possible to turn off syntax highlighting on SublimeREPL tabs when running a script?

Please see this question for context: Red lines appearing after lines in SublimeREPL (python)?

For example, when python scripts are run in the Sublime REPL, apostrophes (') in the output text are highlighted as syntax. Because of this, the last part of the line is highlighted as if the line (which is actually text and not actual code) was not closed properly.

It looks like this: enter image description here

Isolation is useful when Sublime REPL launches an interactive python shell, but when it just needs to run a script, I would like to get text output without allocation, for example, in any command line interface. Of course, I could just run the scripts on the command line, but it would be nice to save all the work in one program.

Perhaps there are settings for different types of Sublime REPL-enveronments (Interactive, run from script, etc.) that can change this behavior?

Thanks for any help! :)

+8
python sublimetext2 sublimerepl
source share
2 answers

Go to Sublime Text> Settings> Package Options> SublimeREPL> Settings - User

(If your "Settings - User" is empty, first copy it to "Settings - Default")

under "repl_view_settings": add:

, "syntax": "Packages/Text/Plain text.tmLanguage" 

so mine now:

 // 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" }, 
+3
source share

As @ joe.dawley wrote in the comments on the original question, there is a way to manually turn off syntax highlighting in SublimeREPL using the go to any-command command (Ctrl + Shift + P) and type “sspl” to set the syntax to plain text.

0
source share

All Articles