Line numbers in developer centre


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 .

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.


2 thoughts on “Line numbers in developer centre

  1. Lars Nielsen says:

    Hey Alistair,

    As always, you’re suprising me!

    I really think it’s something worth to go on with. Why not add it to the shared source library and become the admin for this small, but extremely useful extension?

    Anyways, – this is so cool, and yet based on such a simple idea (an image, – why haven’t i thought of that). Absolutely a productivity feature.

  2. adeneys says:

    Thanks Lars,
    I’m not sure if it would be worth making this a shared source project. It’s so small! I suppose there are things I’d like to improve; like working out how to generate the numbers on the fly (still as an image) so it didn’t just repeat at 100.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


The views expressed on this blog are solely my own and do not necessarily reflect the views of my employer.
%d bloggers like this: