Regarding syntax highlighting, I just found a list on wikipedia of editors we can use:
http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_code_editors CodeMirror (http://marijn.haverbeke.nl/codemirror/) seems to be the most promising. Here's the demo: http://marijn.haverbeke.nl/codemirror/contrib/python/index.html. EditArea is also good, and comes with i18n: http://www.cdolivet.com/index.php?page=editArea&sess=6ef80ec2026659ce741a8ec0f9b36605. Demo: http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html. What do you guys think? On Thu, Sep 24, 2009 at 6:33 PM, William Stein <wst...@gmail.com> wrote: > > On Thu, Sep 24, 2009 at 3:05 AM, Ondrej Certik <ond...@certik.cz> wrote: > > > > Hi Pavel, > > > > thanks a lot for the feedback on the notebook. I think every single > > point that you raised annoys me too and it should be fixed. > > I fully agree. In the meantime, I did list a few workarounds for some > of the issues you have below, which you might find helpful. > > > > > On Wed, Sep 23, 2009 at 10:57 PM, Pavel Solin <so...@unr.edu> wrote: > >> Hi, > >> by now I spent many hours with programming inside the > >> web notebook, so here are some suggestions how to make > >> this kind of work more pleasant: > >> > >> (1) Coloring source code would help a lot. > > We implemented this before and it was way too slow. We should try again. > > >> (2) Saving worksheets is cumbersome, there should be > >> a possibility to save all user's worksheets at once. > > This is implemented, but not turned on by default because it locks the > server temporarily. > > >> (3) When image is saved and latex some text written to output, the > >> image anyway appears after the text. So one does not > >> have an opportunity to create a sequence of images > >> with some text description below each of them. This should > >> be fixed. > > There is a way to do this but it's not trivially straightforward yet. > (you have to use <img src="cell://image.png"> and then you can > put images anywhere using arbitrary html). > > There is also a graphics_array command for laying out images. > > >> (4) If the program becomes longer, it is cumbersome to > >> scroll down to the "evaluate" button, then look at the output, > >> then scroll a long way up again to fix a minor issue, and > >> repeat the whole process. Most of the time, one only works on > >> one function but needs to scroll through the text of all the > >> other ones too. It would help a lot to be able to collapse > >> functions which are not being edited at the moment (but > >> they still would be evaluated all together). > > 1. Use shift-enter instead of clicking Evaluate. > 2. Use %hide at the top of a cell to collapse it. > > Of course it would be nice to have a collapse button. > > >> (5) Undo was already discussed, this functionality is much needed. > > What kind of undo do you want? There is a snapshot every few minutes, > and you can undo in any given input cell, since the browser provides > that for any textarea. > > >> (6) The default graphical resolution of images is not too good. > >> It would be nice to have some handle on it, as well as on their > >> size and position in the browser. It should be possible to > >> put several of them next to each other horizontally, etc. > >> Perhaps this is possible and I just do not know how to do it. > > In Sage at least, you can use the figsize option to show to adjust this. > One also output in svg format. > > >> (7) I have now approx. 8 different worksheets for elementary > >> numerical methods and there will be (hopefully many) more. > >> It would be useful for me to compose my private "library" from > >> which I could then import any of them in the same way as things > >> are imported from sympy, numpy etc. This would greatly > >> facilitate classroom demonstrations. > > I agree. How do you envision doing this. > > >> > >> Best, > >> > >> Pavel > >> > >> -- > >> Pavel Solin > >> University of Nevada, Reno > >> http://hpfem.math.unr.edu/people/pavel/ > >> Hermes project: http://hpfem.org/ > >> FEMhub project: http://femhub.org/ > >> > >> > > >> > > > > > > > > > > > -- > William Stein > Associate Professor of Mathematics > University of Washington > http://wstein.org > > > > -- Tim Joseph Dumol <tim (at) timdumol (dot) com> --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---