Editor Line Numbers
This tweak will add line numbers to the editors in the Developer Centre.
Editor line numbers
The numbers only go up to 100 before they repeat again. This is just to keep the size of the line numbers image down. This tweak will not work if you've modified the editors to use a different font. In that case you would have to provide a different background image.
Share it
This module has now been moved to Sitecore shared source and can now be found at http://trac.sitecore.net/EditorLineNumbers/.
Download
NOTE: All future releases of the editor line numbers will be made through the Sitecore shared source trac pages at the above URL.
Download
Editor Line Numbers 1.0 (13k)Install
The editor line numbers is distributed as a sitecore package. Just download the package using the above link and install using the installation wizard in Sitecore.
Uninstall
To uninstall the editor line numbers just delete the following files which were installed from the package:
- \sitecore\shell\Override\linenumbers.png
- \sitecore\shell\Override\IDE Html Editor.xml
- \sitecore\shell\Override\IDE Text.xml
- \sitecore\shell\Override\IDE Xslt.xml
How it works
This tweak simply adds a background image to the editor controls (XAML memo = HTML textarea) which containing the line numbers in the image. Appropriate padding is also used to push the text over away from the line numbers. You can peek inside any of the above files to see exactly what CSS was tweaked for this tweak.