YabataDesign / afterglow-theme

[DEPRECATED] A minimal dark Theme for Sublime Text 2 and 3
http://yabatadesign.github.io/afterglow-theme/
2.11k stars 139 forks source link

Consider JSON Scope Highlighting #100

Open Saturate opened 9 years ago

Saturate commented 9 years ago

Syntax highlighting is not really useful when dealing with JSON, consider doing scope highlighting. An example is Neon-color-scheme, see below for a comparison.

Material color scheme (older version with no Scope Highlighting): scope-highlighting-2

Neon color scheme (with highlighting): scope-highlighting

41 might be the same as this.

r3Fuze commented 9 years ago

+1 Navigating large JSON files with the Afterglow-monokai theme can be quite challenging.

ntwb commented 9 years ago

A quick hack:

  1. Fork the Afterglow-markdown.tmTheme file to Afterglow-json.tmTheme
  2. Copy/move the Afterglow-json.tmTheme file to /Users/netweb/Library/Application Support/Sublime Text 3/Packages/Theme - Afterglow
  3. Replace the markdown dict sections with JSON from the Neon theme linked above.
  4. Followed the steps to enable markdown though substitute markdown for JSON above

I end up with the expected result, very brightly coloured formatted JSON...

This is the first time I've ever tried customising or creating a Sublime Text theme so..

Is this the preferred method above or should these JSON settings just be included in the main Afterglow-monokai.tmTheme and Afterglow-twilight.tmTheme files?