The controller is returning the HtmlEncoded contents of a text file that the server reads in from the local operating system on the server, and I would like to display that information in a window or editor such that there is a left hand 'gutter' displaying line numbers and the file content has vertical and horizontal scroll bars. The line numbers would scroll-y with the content, but should be fixed with respect to scroll-x.
A good example would be
- the code panel in the Sources tab in Chrome developer tools, or
- http://jspro.brothercake.com/code-examples/principle5.html, or
- http://alan.blog-city.com/jquerylinedtextarea.htm (not my first choice though)
This dojo demonstrates a close solution I made using Window.
https://dojo.telerik.com/@RichardAD/IJuLeyOv
The 'gutter' is not locked (or fixed) though. After many iterations I though of the Editor component and how it might already have line numbers built into it, and I could use it in a read-only manner to display the text file contents with line-numbers.