Skip to content

Commit

Permalink
Added NOTES
Browse files Browse the repository at this point in the history
  • Loading branch information
jrunning committed Apr 20, 2011
1 parent 3a91c4e commit 87268da
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions NOTES.md
@@ -0,0 +1,51 @@
I figured out GitHub's styles mostly by brute force, looking at source listings
and eyeballing the `class=` attributes. Here are the notes I took along the way
for each class. It's by no means complete and only represents what I observed in
the few files I checked.

* **bp:** Special variable e.g. `__FILE__` or `None`

* **c:** HTML, CSS comment
* **c1:** Single-line comment (`# ...` or `// ...`)
* **cm:** Multi-line comment (`/* ... */`)

* **cp:** Declaration e.g. `#include ...` or `<!DOCTYPE ...>`

* **gd:** Diff deletion
* **gd.x:** Diff inline deletion
* **gi:** Diff insertion
* **gi.x:** Diff inline insertion

* **k:** Keyword e.g. `this`, `else`, `do`, or CSS's `margin`, `bold`
* **kd:** Variable, function declaration
* **kt:** Type e.g. `int`, `void`

* **m:** Literal value e.g. `800px` in CSS
* **mi:** Integer value e.g. `55`, `8L`
* **mf:** Float value e.g. `1.5`

* **n:** Generic identifier/variable name
* **na:** HTML attr name=
* **nb:** Declarations and special words, e.g. `document` in JavaScript, `require` in Ruby, `NULL` in C
* **nc:** CSS class rule, Ruby class declaration
* **nf:** CSS id rule, C function declaration
* **no:** Ruby constant
* **nn:** Python module name e.g. "utils" in `import utils`
* **nt:** HTML tag, Haml tag, CSS tag rule
* **nv:** Bash variable name
* **nx:** JavaScript variable name or function call

* **o:** Operators and symbols, e.g. `:`, `=`, `+`, `=>`, `::`

* **p:** Brackets and grouping symbols, e.g. `{}`, `[]`, `()`, `,` in JavaScript, `/` in Haml (e.g. `%br/`)
* **px:** Property in JavaScript, e.g. "log" in `console.log`

* **s:** Quoted HTML attribute value
* **s1:** Single-quoted string
* **s2:** Double-quoted string
* **ss:** Ruby symbol (`:through`)
* **se:** `\\` in Bash (line continuation)
* **si:** String interpolation
* **sr:** Regular expression


0 comments on commit 87268da

Please sign in to comment.