[sage-support] Re: Highlight code

2011-07-03 Thread Alex Juarez
> > Hmm...I think we'd have to go higher than the body tag. IIRC, tinyMCE (so > maybe EditArea too) does things inside of an iframe so that the buttons work > well with selections, but codemirror2 does things just inside of a div > (again, IIRC). > > Again, good luck (that's not sarcastic; I wish

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/3/11 1:31 AM, Alex Juarez wrote: Hi Jason, From what you're saying, it's pretty clear to me that I don't have the same understanding of EditArea that you do (not surprising, since you've spent a lot of time with EditArea and I haven't). For example, when I search for trace

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/3/11 12:12 AM, Alex Juarez wrote: Editarea is a way to implement code mirror see http://codemirror.net/demo/activeline.html, for an example of the feature implemented. We would just need to update the back end in EditArea to code mirror 2 for both all the features of tinyMCE and code mirror.

[sage-support] Re: Highlight code

2011-07-02 Thread Alex Juarez
Editarea is a way to implement code mirror see http://codemirror.net/demo/activeline.html, for an example of the feature implemented. We would just need to update the back end in EditArea to code mirror 2 for both all the features of tinyMCE and code mirror. edit_area_full.js is larger because it c

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/2/11 7:47 PM, Alex Juarez wrote: Hi Jason, I might be able to shed some light on this. The basis of the package is EditArea, based on tinyMCE some older version and a rough draft of CodeMirror I think v1 or earlier. EditArea is similar to the Text field that you get when you shift click. I

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/2/11 1:19 PM, Jason Grout wrote: On 7/2/11 12:59 PM, William Stein wrote: On Sat, Jul 2, 2011 at 9:33 AM, Christophe BAL wrote: Thanks. I'll try to do this as soon as possible. C. You might find this 3-person student project from Math 480 that did *exactly* this relevant: http://wstei

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/2/11 12:59 PM, William Stein wrote: On Sat, Jul 2, 2011 at 9:33 AM, Christophe BAL wrote: Thanks. I'll try to do this as soon as possible. C. You might find this 3-person student project from Math 480 that did *exactly* this relevant: http://wstein.org/edu/2011/480a/projects/juarez-se

Re: [sage-support] Re: Highlight code

2011-07-02 Thread William Stein
On Sat, Jul 2, 2011 at 9:33 AM, Christophe BAL wrote: > Thanks. > > I'll try to do this as soon as possible. > > C. You might find this 3-person student project from Math 480 that did *exactly* this relevant: http://wstein.org/edu/2011/480a/projects/juarez-sean_johnson-priya_chagaleti.zip Alexa

Re: [sage-support] Re: Highlight code

2011-07-02 Thread Christophe BAL
Thanks. I'll try to do this as soon as possible. C. 2011/7/2 Jason Grout > On 7/2/11 4:28 AM, Christophe BAL wrote: > >> Hello. >> >>You're more than welcome to try replacing code cells with the >>current CodeMirror, for example, and evaluating how fast/reliable >>the notebook is

[sage-support] Re: Highlight code

2011-07-02 Thread Jason Grout
On 7/2/11 4:28 AM, Christophe BAL wrote: Hello. You're more than welcome to try replacing code cells with the current CodeMirror, for example, and evaluating how fast/reliable the notebook is then. Then please report your findings here, of course. Where I can do that ? Which file

Re: [sage-support] Re: Highlight code

2011-07-02 Thread Christophe BAL
Hello. You're more than welcome to try replacing code cells with the current > CodeMirror, for example, and evaluating how fast/reliable the notebook is > then. Then please report your findings here, of course. > Where I can do that ? Which file in /sage/devel/sagenb-main/build/lib/sagenb/data/s

[sage-support] Re: Highlight code

2011-06-29 Thread Jason Grout
On 6/29/11 4:32 AM, projetmbc wrote: Hello, it could be a new feature very usefull to see highlighting codes so as to find easily some syntax errors. There are easy tio use jaavscript libraries like CodeMirror.net/ and highlight.js