How to insert highlighted code blocks in the forum post

(Vlad Getselevich) #1

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?

0 Likes

(Kyle Nesgood) #2

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)
0 Likes

(Vlad Getselevich) #3
Thank you!
0 Likes