On Fri, Nov 18, 2011 at 8:35 PM, rych <[email protected]> wrote:
> Would it be possible to add line-numbering to the cell textarea? I've
> heard of two methods: either a thin background image cropped or
> another textarea glued to the left. Alternatively, CodePress or other
> web-editors. Links in the thread below,
>
> http://stackoverflow.com/questions/1995370/html-adding-line-numbers-to-textarea
>
> We've recently built SageGPU and we try to do both CUDA and the host C+
> + development within Sage. The source code tend to grow larger than
> one screen. Compilation prodiuices errors with line numbers. We've
> been using "from pygments import highlight" etc. to get both syntax
> highlighting and line-numbering in the HTML output and then try to
> find the relevant place in the unimpressive textarea. But that's far
> from ideal.
>
> If syntax highlighting is too much to ask at the moment, line-
> numbering could be doable in short-term? Or is there something
> insurmountable against both?


I don't necessarily recommend using this, but a student project in a
course I taught not so long ago involved adding line numbers:

   
http://wstein.org/edu/2011/480a/projects/juarez-sean_johnson-priya_chagaleti.zip

> Igor
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to