Permalink
Browse files

Test js syntax highlighting in README

  • Loading branch information...
1 parent 5b4c79c commit 1f73588f0adb32583113e3d4738bb8510d6f5629 @bnoguchi committed Apr 20, 2011
Showing with 26 additions and 22 deletions.
  1. +26 −22 README.md
View
48 README.md
@@ -40,29 +40,33 @@ or 3 simple steps if using Express:
instructions.
2. **Add the Middleware to Connect**
- var everyauth = require('everyauth');
- // Step 1 code goes here
-
- // Step 2 code
- var connect = require('connect');
- var app = connect(
- connect.bodyParser()
- , connect.cookieParser()
- , connect.session({secret: 'mr ripley'})
- , everyauth.middleware()
- , connect.router(routes)
- );
+ ```javascript
+ var everyauth = require('everyauth');
+ // Step 1 code goes here
+
+ // Step 2 code
+ var connect = require('connect');
+ var app = connect(
+ connect.bodyParser()
+ , connect.cookieParser()
+ , connect.session({secret: 'mr ripley'})
+ , everyauth.middleware()
+ , connect.router(routes)
+ );
+ ```
3. **Add View Helpers to Express**
-
- // Step 1 code
- // ...
- // Step 2 code
- // ...
-
- // Step 3 code
- everyauth.helpExpress(app);
-
- app.listen(3000);
+
+ ```javascript
+ // Step 1 code
+ // ...
+ // Step 2 code
+ // ...
+
+ // Step 3 code
+ everyauth.helpExpress(app);
+
+ app.listen(3000);
+ ```
For more about what view helpers `everyauth` adds to your app, see the section
titled "Express Helpers" near the bottom of this README.

0 comments on commit 1f73588

Please sign in to comment.