Format one code block
In Word for Windows, paste the sample below using Keep Text Only and select both paragraphs. On Home, choose the font and set paragraph spacing before and after to zero. Check that the equals signs line up and that you can tell the letter O from zero.
row_O = 10
row_0 = 20Reuse the formatting
Right-click the formatted selection, choose Styles, then Create a Style. Name it Code Block. Paste a second snippet as text, select its paragraphs and apply Code Block from Home → Styles. To adjust all examples together, right-click Code Block in the gallery and choose Modify.