Creating an executional area

Hi, I had a question about using code mirrors because I am pretty new to it. Is there any way for you to create an area for executing the code like you do in Thank you in advance.

CodeMirror can provide the editor in such an interface, but it doesn’t execute code, you’ll have to find a separate solution for that.