Some of my `runnableExamples` also has `.. code-block:: nim` ;P Actually I changed from `when is_main_module:` to `runnableExamples` (for libs), is the correct way.
I think is an awesome feature, because other lang have DocTests or the like (Python, Rust, etc), but the code is on comments, that means you dont have any features of the IDE/Editor you are using, like syntax highlight, etc, is still code on a comment.