Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider JSON Scope Highlighting #100

Open
Saturate opened this issue Jun 3, 2015 · 2 comments
Open

Consider JSON Scope Highlighting #100

Saturate opened this issue Jun 3, 2015 · 2 comments

Comments

@Saturate
Copy link

Saturate commented Jun 3, 2015

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
Copy link

r3Fuze commented Jun 3, 2015

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

@ntwb
Copy link

ntwb commented Jun 4, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants