Code

Details

(TBD)

Examples

Code directive (Python)

.. code:: python

   def add(a: int, b: int) -> int:
       return a + b
```python
def add(a: int, b: int) -> int:
    return a + b
```

Code-block directive (PHP)

.. code-block:: php

   <?php

   function add(int $a, int $b): int {
       return $a + $b;
   }
```php
<?php

function add(int $a, int $b): int {
    return $a + $b;
}
```

References

Docutils:

Typst: