To turn line numbers on by default in the HTML Editor, go to the Tools Menu > Preferences > Customization

Preferences

Now click on Modify Options

Line Numbers

Check the box Line Numbers in Gutter and click Ok.