Skip to content

Commit 182a7db

Browse files
author
Geoffrey Hunter
committed
Added syntax highlighting to code blocks.
1 parent 401f3c0 commit 182a7db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Casting to an :code:`int` rounds to negative infinity; e.g. 5.67 becomes 5, and
4949

5050
Create a fixed point number:
5151

52-
::
52+
.. code:: cpp
5353
5454
#include "MFixedPoint/FpS.hpp"
5555
@@ -61,7 +61,7 @@ Create a fixed point number:
6161
6262
Addition/Subtraction/Multiplication/Division:
6363

64-
::
64+
.. code:: cpp
6565
6666
FpS32 fp1(5.0, 8);
6767
FpS32 fp2(1.5, 8);
@@ -73,7 +73,7 @@ Addition/Subtraction/Multiplication/Division:
7373
7474
Modulus:
7575

76-
::
76+
.. code:: cpp
7777
7878
FpS32 fp1(5.1, 10);
7979
FpS32 fp2(1.5, 8);
@@ -82,7 +82,7 @@ Modulus:
8282
8383
Conversion/Casting:
8484

85-
::
85+
.. code:: cpp
8686
8787
FpS32 fp1(2.22, 8);
8888
@@ -140,7 +140,7 @@ Either use cmake with the provided :code:`CMakeLists.txt` in the root directory,
140140
The cmake method will build the fixed point library and automatically runs all unit tests and the benchmark program.
141141

142142

143-
::
143+
.. code:: bash
144144
145145
~$ git clone https://github.com/mbedded-ninja/MFixedPoint.git
146146
~$ cd MFixedPoint
@@ -151,7 +151,7 @@ The cmake method will build the fixed point library and automatically runs all u
151151
152152
You can then the tests by calling:
153153

154-
::
154+
.. code:: bash
155155
156156
~/MFixedPoint/build$ ./test/MFixedPointTests
157157
@@ -160,7 +160,7 @@ Usage
160160

161161
See the unit tests in :code:`test/` for more usage examples!
162162

163-
::
163+
.. code:: cpp
164164
165165
// Include the API header which provides access to all of the fixed-point
166166
// data types

0 commit comments

Comments
 (0)