July 23, 2008 by Alistair Deneys
Recently I was in a Sitecore training session where a student was commenting on the line numbers given in XSLT errors from .NET. As with most XSLT parsers, when the .NET XSLT parser encounters a syntax error in the XSLT file it gives a friendly error message including the line number the error occurred on. This particular student mentioned it would be good if the XSLT editor in Sitecore contained line numbers to help find the syntax error quickly.
So I got to hacking my Sitecore straight away 🙂 . And I’ve come up with another Sitecore tweak to add line numbers to the editors in the developer centre. You can download the tweak from my website at http://users.tpg.com.au/adeneys/sitecoreEditorLineNumbers.html .
The line numbers only go up to 100 and then repeat. This was to keep the size of the package down. 100 is a good number to go up to as it’s easy to remember in your head how many times it’s repeated and what line number you’re really up to.