aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/src/index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/index.rst b/doc/src/index.rst
index 2cb695a..41f9675 100644
--- a/doc/src/index.rst
+++ b/doc/src/index.rst
@@ -50,7 +50,7 @@ The class template :cpp:class:`new_type` takes as a third template argument an i
Derivation clauses make it possible to let the implementation derive certain operations automatically.
For example, the derivation tag :cpp:var:`Arithmetic` enables automatic derivation of arithmetic operations for a given instance of :cpp:class:`new_type` (see :ref:`new-type-usage-deriving-arithmetic` below).
-.. code-block::
+.. code-block:: c++
:linenos:
:name: new-type-usage-deriving-arithmetic
:caption: Automatically deriving arithmetic operations
@@ -62,7 +62,7 @@ For example, the derivation tag :cpp:var:`Arithmetic` enables automatic derivati
Synopsis
~~~~~~~~
-.. code-block::
+.. code-block:: c++
namespace nt
{