Do you realize that your solution is basically to use a tag, which is why Markdown have been developed, to not use them.
The classic way in markdown to insert block of code is to indent the code.
The classic way in markdown to insert block of code is to indent the code.
Indenting inline code requires a text editor that makes indentation ergonomic or else extra effort per line; and it doesn't mesh well with lists or block quotes.