I want to debug data structures and/or algorithms visually in inferior buffers (mainly python and haskell, but any interpreter running in a buffer should be the same).
For this I would like to have a mechanism for setting display properties, creating images via markup. For example in a python inferior buffer:
<dot>
digraph G {Hello->World}
</dot>
*foo* _quux_
should be replaced with an image that contains the rendered graph followed by bold text foo, and underlined text quux.
(Of course the xml like notation for the image and the news like for the text is just an idea, any other notation is OK.)
Rendered/raw view should be switchable, and IMHO it should be be a minor mode, so it can be enabled without losing the functionality of the inferior mode.
Does something like this already exist? If not, how should I start, what documentation, code, examples to read?