I'm one of the maintainers of sqlfluff, and I'd like to replicate similar pattern
and anti-pattern
examples to the flake8 documentation here: https://www.flake8rules.com/rules/E101.html
At the moment the default styling for code-block
sections in rst
files doesn't show whitespace as explicit characters, which is normally great - but not very useful if the mixture of whitespace is what you want to show.
Is there a way in rst
code-block
sections to render whitespace similar to the render whitespace
settings in common code editors (similar to this SO question)?
An ideal answer would be to do this natively, but I'm also open to potential options in extending sphinx (although it would be useful to have some pointers on how to do that), or other creative workarounds.