Skip to content

Instantly share code, notes, and snippets.

@joshwiens
Created February 25, 2016 15:50
Show Gist options
  • Save joshwiens/31a3caeea53e3e24da91 to your computer and use it in GitHub Desktop.
Save joshwiens/31a3caeea53e3e24da91 to your computer and use it in GitHub Desktop.
Atom italic attribute names
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
border-color: #7797e9;
border-width: thin;
}
// Changes attribute names to display in italics
// Be sure to use a font that has an italic font style ( Source Code Pro for instance)
atom-text-editor::shadow .entity.other.attribute-name {
font-style: italic;
font-weight: 600;
}
@joshwiens
Copy link
Author

screen shot 2016-02-25 at 9 44 37 am

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