Skip to content

Instantly share code, notes, and snippets.

@deletosh
Created December 17, 2020 14:53
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 deletosh/749f445ab1154cd0f630dcf34bfbf962 to your computer and use it in GitHub Desktop.
Save deletosh/749f445ab1154cd0f630dcf34bfbf962 to your computer and use it in GitHub Desktop.
element {
/* HTML element, e.g. div, span, p */
}
.some-class {
/* HTML class name, not the "naming pattern , not_snaked_case */
}
#some-id {
/* an HTML'ed id */
}
@a4ayad
Copy link

a4ayad commented Dec 17, 2020

Looking at the color code used by the text editors. While WS uses the same color for all three samples, VI uses a separate color for 'element' and the same color for '.some-class' and '#some-id', which similar to what is displayed by github repo.

@deletosh
Copy link
Author

deletosh commented Dec 17, 2020

That because, element is not really correct, there's no HTML element called element, rename to div and see if that matches

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