Change syntax highlighting in Sublime Text 2

How can I change the Sublime Text 2 highlight setting so that the text between quotation marks does not turn so pink and almost hurts my eyes?

EDIT: forgot to mention, this happens in LaTeX files, and I use the Monokai theme (if that matters, I'm not quite sure).

Thanks.

enter image description here

+4
source share
2 answers

I realized that it was LaTeX, but I wanted to make sure. So there are 2 possible fixes for this.

First, correctly identify quotation marks. That is, using " is displayed incorrectly. I will be honest, I did not know about it until I came across the following message ( link ). I think this will be the right thing.

The second way is to modify the tmLanguage file. The following scope applies to this invalid.illegal.string.quoted.double.latex line. You can remove the associated template from the tmLanguage file, and it should stop this selection. If you want to go this route, let me know and I can provide additional instructions on how to do this.

+3
source

(I ran into a similar problem and searched several StackOverflow Q & A pages, but the answers did not seem to suit my needs). Well, many people praise a JSON-type configuration file for its flexibility or else ... etc., but in fact the pain does not have a real-time graphical interface for the style configurator (changing the color scheme in the case of Sublime Text). As a new user knows which option the name (s) should be configured (just need one or two) between thousands of key-value pairs.

If you need to change one or two things from a good default theme, you can use this website to create your own theme file for the theme. This guy really did a great job: http://tmtheme-editor.herokuapp.com/#/theme/Monokai

+1
source

All Articles