瀏覽代碼

Add syntax highlighting to the code in the README

Ryan Olson 12 年之前
父節點
當前提交
3e9bf84655
共有 1 個文件被更改,包括 17 次插入13 次删除
  1. 17 13
      README.md

+ 17 - 13
README.md

@@ -21,25 +21,29 @@ Unlike many other debugging tools, FLEX runs entirely inside your app, so you do
 ## Usage
 ## Usage
 Short version:
 Short version:
 
 
-    [[FLEXManager sharedManager] showExplorer];
+```objc
+[[FLEXManager sharedManager] showExplorer];
+```
 
 
 More complete version:
 More complete version:
 
 
-    #if DEBUG
-    #import "FLEXManager.h"
-    #endif
+```objc
+#if DEBUG
+#import "FLEXManager.h"
+#endif
 
 
-    ...
+...
 
 
-    - (void)handleSixFingerQuadrupleTap:(UITapGestureRecognizer *)tapRecognizer
-    {
-    #if DEBUG
-        if (tapRecognizer.state == UIGestureRecognizerStateRecognized) {
-            // This could also live in a handler for a keyboard shortcut, debug menu item, etc.
-            [[FLEXManager sharedManager] showExplorer];
-        }
-    #endif
+- (void)handleSixFingerQuadrupleTap:(UITapGestureRecognizer *)tapRecognizer
+{
+#if DEBUG
+    if (tapRecognizer.state == UIGestureRecognizerStateRecognized) {
+        // This could also live in a handler for a keyboard shortcut, debug menu item, etc.
+        [[FLEXManager sharedManager] showExplorer];
     }
     }
+#endif
+}
+```
 
 
 
 
 ## Feature Examples
 ## Feature Examples