diff --git a/doc/environment.adoc b/doc/environment.adoc index 675530d..7828045 100644 --- a/doc/environment.adoc +++ b/doc/environment.adoc @@ -37,7 +37,7 @@ Finds the length of the hypotenuse `z` according to the Pythagorean Theorem: ste As Python has built-in big integer support (and uses 64-bit `float`), it can be used to easily determine for which `x` this implementation becomes imprecise due to float precision limitations: -[source,python3] +[source, python] ---- def factorial(x): return x if x == 1 else x * factorial(x-1) diff --git a/include/config.adoc b/include/config.adoc index 692f1dd..ed7929b 100644 --- a/include/config.adoc +++ b/include/config.adoc @@ -1,6 +1,8 @@ Minetest-Docs and contributors :experimental: true :stem: +:source-highlighter: highlightjs + :toc: :toclevels: 5