4

How can I change the highlight setting of Sublime Text 2, so that the text between quotes doesn't get pink like that and almost hurts my eyes?

EDIT: forgot to mention, this is happening in LaTeX files and I am using theme Monokai (if that matters, not really sure).

Thanks.

enter image description here

nunos
  • 20,479
  • 50
  • 119
  • 154
  • This might be what you are looking for : http://stackoverflow.com/a/11656100/1624921 – Games Brainiac Mar 15 '13 at 22:26
  • What syntax are you using? The highlighting has to do with the scope that is applied to that region. I don't think you want to modify the color scheme file, but rather the tmLanguage file. More details will make it easier to help though :) – skuroda Mar 15 '13 at 22:28
  • @skuroda You're so right. Forgot to add those details in the question. Just edited it now. Please take a look. – nunos Mar 15 '13 at 22:47

2 Answers2

3

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

The first is to define quotes properly. That is, using " renders incorrectly. I'll be honest, I didn't know about that until I came across the following post (link). I think this would be the correct thing to do.

The second method is to modify the tmLanguage file. The following scope is being applied to that string invalid.illegal.string.quoted.double.latex. You can remove the associated pattern from the tmLanguage file, and it should stop that highlight from occurring. If you want to take this route, let me know and I can provide some additional instructions on how to do it.

skuroda
  • 19,514
  • 4
  • 50
  • 34
  • What a strange behavior for the " (double quotes). I am changing as suggested in the link you provided. Thanks. – nunos Mar 15 '13 at 23:08
1

(I encountered the similar problem and search through several StackOverflow Q&A pages but the answers seems not to satisfied my needs). Well, a lot of people praise JSON type configuration file, about its flexibility or else... etc., but it's really a pain not to have a realtime GUI for style configurator (color scheme editing in the case of Sublime Text). How a new user know which option's name(s) should he tweak (just need one to two) between thousands of key-value pairs.

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

Jim Raynor
  • 2,268
  • 3
  • 31
  • 36