@ioquatix, this seems somewhat like a case of the undermentioned:
Fenced code blocks are an improvement in syntax highlighting capability, and I’m surprised that you solely ever encounter a need to indent when using code blocks. You should use fences.
However, note that Stack Exchange has implemented syntax for this: