How to insert highlighted code blocks in the forum post

How to insert highlighted code blocks in the post?
Format option in the editor does not do anything for me.

The only way I found how to do it is manually inserting
“3 back quotes + cpp” label in the text before the code.
and “3 back quotes” at the end of the code block.

Is there more convenient way to do the same?

Use four spaces before what you want in a code block. For example:

x_train = normalize(x_train, train_mean, train_std)
x_valid = normalize(x_valid, train_mean, train_std)
Thank you!