Source

nsstringgen / README.rst

Diff from to

README.rst

 Installation
 ------------
 
-To install, use ``setup.py``:
-
-.. code:: bash
+To install, use ``setup.py``::
 
  $ sudo python ./setup.py install
 
 Usage
 -----
 
-Call ``nsstringfromenumgen`` with one or more Objective-C source files. It parses them and outputs NSStringFromEnum functions for each enumeration found. It tries to be smart with typedefs and enum names and if it finds both names, it produces two functions. It also outputs an extern declaration for each function:
-
-.. code:: bash
+Call ``nsstringfromenumgen`` with one or more Objective-C source files. It parses them and outputs NSStringFromEnum functions for each enumeration found. It tries to be smart with typedefs and enum names and if it finds both names, it produces two functions. It also outputs an extern declaration for each function::
 
  $ nsstringfromenumgen Foo.h
-
-.. code:: objc
-
  extern NSString* NSStringFromAnEnum(AnEnum v);
  NSString* NSStringFromAnEnum(AnEnum v) {
    switch (v) {
    }
  }
 
-If your enums have values defined, they will be included too:
-
-.. code:: objc
+If your enums have values defined, they will be included too::
 
  extern NSString* NSStringFromValuesEnum(ValuesEnum v);
  NSString* NSStringFromValuesEnum(ValuesEnum v) {
 
 If your code relies on a prefix header, you need to include it on the command line with the ``--include`` flag. You can specify more than one of them if necessary.
 
-You can also instruct ``nsstringfromenumgen`` to treat your enums as options for a bitmask by including the ``--mask`` flag:
-
-.. code:: bash
+You can also instruct ``nsstringfromenumgen`` to treat your enums as options for a bitmask by including the ``--mask`` flag::
 
  $ nsstringfromenumgen Foo.h --mask
-
-.. code:: objc
-
  extern NSString* NSStringFromMaskEnum(enum MaskEnum v);
  NSString* NSStringFromMaskEnum(enum MaskEnum v) {
    NSMutableArray *bits = [NSMutableArray array];
 2. Have ``/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h`` which it includes automatically,
 3. You want to read stdin and copy the results to clipboard.
 
-If that sounds right and you install it as a service, you can feed it code blocks like:
-
-.. code:: objc
+If that sounds right and you install it as a service, you can feed it code blocks like::
 
    typedef NS_ENUM(NSInteger, AnEnum) {
      AnEnumFirstValue,