Add function to switch line numbering