Skip to content

Commit 71511f4

Browse files
authored
code-blocks missing in the docs (#1911)
* Update strings.rst For some reasons the code blocks which are not set as 'idris' are not displayed in the readthedocs rendering. * Update overloadedlit.rst * Update overloadedlit.rst
1 parent 6fcb8b1 commit 71511f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/reference/overloadedlit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ the literal is suitable for the ``Fin n`` type. The restricted behaviour can be
3838
observed in the REPL, where the failure to construct a valid proof is caught during
3939
the type-checking phase and not at runtime:
4040

41-
.. code-block::
41+
.. code-block:: idris
4242
4343
Main> the (Fin 3) 2
4444
FS (FS FZ)

docs/source/reference/strings.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ If you need to escape characters you still can by using a ``\\`` followed by the
8585
``#`` that you used for your string delimiters. In the following example we are using two
8686
``#`` characters as our escape sequence and want to print a line return:
8787

88-
.. code-block::
88+
.. code-block:: idris
8989
9090
markdownExample : String
9191
markdownExample = ##"markdown titles look like this: \##n"# Title \##n body""##
9292
9393
This last example could be implemented by combining raw string literals with multiline strings:
9494

95-
.. code-block::
95+
.. code-block:: idris
9696
9797
markdownExample : String
9898
markdownExample = ##"""
@@ -111,7 +111,7 @@ programs that evaluate to strings with a string literals in order to avoid manua
111111
the concatenation of those expressions. To use interpolated strings, use ``\{`` to start an
112112
interpolation slice in which you can write an idris expression. Close it with ``}``
113113

114-
.. code-block::
114+
.. code-block:: idris
115115
116116
print : Expr -> String
117117
print (Var name expr) = "let \{name} = \{print expr}"

0 commit comments

Comments
 (0)