Skip to content

Instantly share code, notes, and snippets.

@iarna
Last active August 29, 2015 14:22
Show Gist options
  • Save iarna/a1e7a6a242581169e6fc to your computer and use it in GitHub Desktop.
Save iarna/a1e7a6a242581169e6fc to your computer and use it in GitHub Desktop.
Syntax Highlighting

Optimize for readability:

  • Emphasize the important things.
  • Demphasize the noise.
  • Leave most of the content uncolored.

I emphasize:

  • literals – light cyan
  • constants - light green
  • immutable operators - bright white
  • mutating operators - yellow
  • braces - yellow
  • exports - dark blue
  • exported method name - bright blue
  • TODO and FIXME in comments - bright green
  • node.js globals - bright white
  • detectable syntax errors - black on bright red

I deemphasize:

  • comments - dark green
  • parenthesis, commas, periods and semicolons - dark grey

It looks like this:

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