Permalink
Browse files

Merge pull request #19 from bronzehedwick/patch-1

Add syntax highlighting to readme code snippet
  • Loading branch information...
2 parents 5daf22b + f375e1f commit 06c4f9f57296420fc5d28fe61e881a710eb79ef2 @fitzgen committed Sep 24, 2015
Showing with 16 additions and 14 deletions.
  1. +16 −14 README.md
View
@@ -1,19 +1,21 @@
Exposes `gh` to the global environment. Tries to follow both the form of Github
HTTP API and JS style.
- gh.authenticate("fitzgen", "sdfk32we-FAKE-uydfs7f-rhrwe8r7");
- var huddlej = gh.user("huddlej");
- huddlej.show(function (data) {
- console.log(data.user);
- });
- huddlej.repos(function (data) {
- console.log("Number of repos: " + data.repositories.length);
- });
- var wujs = gh.repo("fitzgen", "wu.js")
- wujs.show(function (data) {
- console.log("Number of watchers: " + data.repository.watchers);
- });
- wujs.update({ has_wiki: 0 }); // Unfortunately, no callbacks with POSTs :(
+```js
+gh.authenticate("fitzgen", "sdfk32we-FAKE-uydfs7f-rhrwe8r7");
+var huddlej = gh.user("huddlej");
+huddlej.show(function (data) {
+ console.log(data.user);
+});
+huddlej.repos(function (data) {
+ console.log("Number of repos: " + data.repositories.length);
+});
+var wujs = gh.repo("fitzgen", "wu.js")
+wujs.show(function (data) {
+ console.log("Number of watchers: " + data.repository.watchers);
+});
+wujs.update({ has_wiki: 0 }); // Unfortunately, no callbacks with POSTs :(
+```
COMPLETE
========
@@ -30,4 +32,4 @@ COMPLETE
TODO
====
-* Documentation
+* Documentation

0 comments on commit 06c4f9f

Please sign in to comment.