Skip to content

Instantly share code, notes, and snippets.

@deletosh
Created December 17, 2020 14:53
Show Gist options
  • Select an option

  • Save deletosh/749f445ab1154cd0f630dcf34bfbf962 to your computer and use it in GitHub Desktop.

Select an option

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

a4ayad commented Dec 17, 2020

Copy link
Copy Markdown

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

deletosh commented Dec 17, 2020

Copy link
Copy Markdown
Author

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