Skip to content

Instantly share code, notes, and snippets.

@smockle
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smockle/ef45fc9dc77b6e3c4413 to your computer and use it in GitHub Desktop.
Save smockle/ef45fc9dc77b6e3c4413 to your computer and use it in GitHub Desktop.
Atom Editor styles to differentiate keys and values in JSON files
// Style JSON keys and values differently
atom-text-editor::shadow .meta.structure.dictionary.json {
// Keys
& > .string.quoted.json,
.punctuation.definition.string.json {
color: @blue;
}
// Values
& > .value.json > .string.json,
.value:not(:first-child) .punctuation.definition.string.json,
.array > .string.json .punctuation.definition.string.json {
color: @green;
}
}
@smockle
Copy link
Author

smockle commented Apr 21, 2015

Now an Atom Editor package: https://atom.io/packages/colorful-json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment