Maybe I’m misunderstanding, but I think you can do that with multimarkdown rendering.
# my code example ```python This = {“codeblock”: “is colored”} as = [“python”, “code”] ```