The advanced question text editor in Constructor Learn allows you to insert either inline code or code blocks. Here's how to do it:
Configuring questions
Inserting formulas into questions