
How to enter line numbers in word keep format code#

Or with line numbers, or in certain types of fonts, and with differing colors. You might need to present your code with a pink background. It's going to be nearly impossible to edit any text at all if your code is pages long. But when you begin editing regular text, your codes will move and become scrambled, getting in the way of your editing. Okay, so you might have successfully copied and pasted a snippet of code in the middle of a page. There has been reports that when you copy directly from a computer program and not a code editor, the semi-colons and the curly brackets end up being in the wrong places.

In fact, there’s just no way to tell, unless you’ve been there. Maybe it works for your first one to three lines of codes, but when you have to copy and paste 1,000 lines of codes and retain their formatting, then you might have a problem. Copy and paste does not guarantee you'll keep the code formatting as is! The problem with good ol’ copy + paste
