Code Editor for coding questions

I have been trying to change {{type:Answer}} for comparing written Code with current solución using a more coding like textbox. Some of the options I have check are:
1.-multiline add-on, but lacks keymap for tabs and syntax highligthing which would be cool
2.-embedding html code editor (ace or codemirror) into card definition but it’s hard to center and cannot figure out how to connect with text correctness feature

I’m asking for help because I have search many people kinda implementing this but solutions suffer fron above problems. Also have asked many people about the idea and told that would be a good feature if it we’re implemented natively as an options to learn Code.