doc: tools, dev: Add caption and box for verbatim.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-09-15 16:19:46 +02:00
1 parent 100f98c56b
commit d772a44c67
2 files changed
+19

No files matched your search

+2
View File
@@ -115,6 +115,7 @@ source code: https://orgmode.org/org.html#Working-with-Source-Code
Here is an example for python source code:
#+BEGIN_EXAMPLE
#+CAPTION: Get os type name in Python code
#+begin_src python
import os
@@ -125,6 +126,7 @@ print(f"Document build on system: {os.name}")
If you use GNUEmacs, it is also possible to run the code inside a
block and export (or not) the reuslts in the document.
#+CAPTION: Get os type name in Python code
#+begin_src python :python python3 :results output :exports both :noweb yes
import os