Pregunta

I been using Sublime Text 3 on Mac OSX since it has been released. Currently using Build 3059. But I have yet to figure out a way to change the Color Scheme for Tags.

  • It shows all HTML tags (ie. <td>, <tr>) as blue.
  • It shows everything that is in quotes in green (ie. <xsl:template match="counter">) where "counter" would be in green.

Screenshot:

enter image description here

I know that I can change the "Color Scheme" to something else so that the colors are different, but can the "Color Scheme" be manually edited so that not everything is blue and green.

For Example: <td> would be brown while <tr> would be red.

¿Fue útil?

Solución

The colors applied are based on scopes. Scopes are applied based on regular expressions in the tmLanguage files. To get coloring as fine grained as you want, you would need to edit the tmLanguage file to uniquely identify specific tags and the tmTheme file so the appropriate color is assigned to the new scopes you define in the tmLanguage file.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top