ソースを参照

Update README.rst

Adding syntax highlighting to readme
Mike Lewis 13 年 前
コミット
cf7555364d
1 ファイル変更4 行追加3 行削除
  1. 4 3
      README.rst

+ 4 - 3
README.rst

@@ -73,8 +73,9 @@ The Web Socket.
   closes, errors, or fails.  This is similar to how ``NSURLConnection`` behaves.
   closes, errors, or fails.  This is similar to how ``NSURLConnection`` behaves.
   (unlike ``NSURLConnection``, ``SRWebSocket`` won't retain the delegate)
   (unlike ``NSURLConnection``, ``SRWebSocket`` won't retain the delegate)
 
 
-What you need to know:: 
+What you need to know
 
 
+.. code-block:: objective-c
   @interface SRWebSocket : NSObject
   @interface SRWebSocket : NSObject
 
 
   // Make it with this
   // Make it with this
@@ -91,13 +92,13 @@ What you need to know::
   // Send a UTF8 String or Data
   // Send a UTF8 String or Data
   - (void)send:(id)data;
   - (void)send:(id)data;
 
 
-
   @end
   @end
 
 
 ``SRWebSocketDelegate``
 ``SRWebSocketDelegate``
 ```````````````````````
 ```````````````````````
-You implement this ::
+You implement this
 
 
+.. code-block:: objective-c
   @protocol SRWebSocketDelegate <NSObject>
   @protocol SRWebSocketDelegate <NSObject>
 
 
   - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message;
   - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message;