Commits

Juri Pakaste  committed fe118c1

So bitbucket doesn't support code-block in reStructuredText. Does just code work?

  • Participants
  • Parent commits daae95c

Comments (0)

Files changed (1)

 
 To install, use ``setup.py``:
 
-.. code-block:: bash
+.. code:: bash
 
  $ sudo python ./setup.py install
 
 
 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-block:: bash
+.. code:: bash
 
  $ nsstringfromenumgen Foo.h
 
-.. code-block:: objc
+.. code:: objc
 
  extern NSString* NSStringFromAnEnum(AnEnum v);
  NSString* NSStringFromAnEnum(AnEnum v) {
 
 If your enums have values defined, they will be included too:
 
-.. code-block:: objc
+.. code:: objc
 
  extern NSString* NSStringFromValuesEnum(ValuesEnum v);
  NSString* NSStringFromValuesEnum(ValuesEnum v) {
 
 You can also instruct ``nsstringfromenumgen`` to treat your enums as options for a bitmask by including the ``--mask`` flag:
 
-.. code-block:: bash
+.. code:: bash
 
  $ nsstringfromenumgen Foo.h --mask
 
-.. code-block:: objc
+.. code:: objc
 
  extern NSString* NSStringFromMaskEnum(enum MaskEnum v);
  NSString* NSStringFromMaskEnum(enum MaskEnum v) {
 
 If that sounds right and you install it as a service, you can feed it code blocks like:
 
-.. code-block:: objc
+.. code:: objc
 
    typedef NS_ENUM(NSInteger, AnEnum) {
      AnEnumFirstValue,