Просмотр исходного кода

Update README.rst

Adding syntax highlighting to readme
Mike Lewis 13 лет назад
Родитель
Сommit
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.
   (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
 
   // Make it with this
@@ -91,13 +92,13 @@ What you need to know::
   // Send a UTF8 String or Data
   - (void)send:(id)data;
 
-
   @end
 
 ``SRWebSocketDelegate``
 ```````````````````````
-You implement this ::
+You implement this
 
+.. code-block:: objective-c
   @protocol SRWebSocketDelegate <NSObject>
 
   - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message;