Adds rules and styles for line numbering.