Any interest in this widget for dojox (experimental)?
It's still a work in progress, but I have a little demo here:
http://www.nicolarizzo.com/gamesroom/experimental/CodeEditor.html
Regards,
Nicola
New widget proposal: editor with syntax coloring and completion
Submitted by nic on Sun, 09/16/2007 - 08:55.
- Login or register to post comments
- Unsubscribe post

Great job, I like it. What
Great job, I like it.
What type of syntax highlighting is it doing?
Thank for your
Thank for your interest!
I'll soon change the file format for the autocomplete and highlighting.
There is still a lot to do! : )
Nicola
Whats your plans on porting
Whats your plans on porting to 0.9+ Nic?
-Karl
Hi Karl,
Hi Karl,
it's already written for dojo 0.9 trunk!
nic
Awesome, where's the demo
Awesome, where's the demo running 0.9 then? :p
-Karl
Sorry, I don't understand:
Sorry, I don't understand: are you looking for a .../dojox/widget/tests/test_CodeTextArea.html on my server?
nic
No, the example I saw, I
No, the example I saw, I thought it used 0.4.x still... (maybe I was wrong)... Was it an 0.9 test? (my fault for now viewing source if it is).
-Karl
Sure, 0.9+! :) Nicola
Sure, 0.9+! :)
Nicola
Well that it is! hehe guess
Well that it is! hehe guess we just wasted a lot of time trying to communicate that :p
Great work Nic :)
although I did notice when I was playing with the example the only thing I got it to highlight was "dojo" :p any use of the word dojo was green but nothing else was highlighted...
-Karl
In the current demo you can
In the current demo you can highlight these words:
http://www.nicolarizzo.com/gamesroom/experimental/javascript_color.json
(window, dojo, this, blur, focus, document, true, false, function)
Try also ctrl+space, ctrl+l and ctrl+v ;)
nic
check it out at google code
http://code.google.com/p/codetextarea/
and if you look at http://codetextarea.googlecode.com/svn/trunk/experimental/javascript_col... you will get an idea what the author has implemented so far.
--
Roberto Saccon
http://rsaccon.com
Added (partial) support for undo/redo and other stuff
Now it's possible to undo/redo (not working with paste at this moment).
I added autocompletion for the public properties of the dojo object and a bit of javascript.
nic
hi. looks great. really
hi. looks great. really responsive (at least with the text i was compelled to write in) ... I am _always_ looking for tab control in a textarea, too. forever tabbing to indent and having a horrible UX getting my pointer back to where i was trying before the mistake (not in your app, just so we're clear, just "in general") so that's cool too. One thing I noticed, I couldn't hit the "[" key in MacOS/FF2 to make an array:
dojo.forEach(["a,"b",b"],function(letter){ console.log(letter); });Hi Dante, fixed the square
Hi Dante,
fixed the square bracket, thank you!
nic
ps can I use the icons I saw on dojo api documentation (http://redesign.dojotoolkit.org/sites/all/themes/dtkapi/css/img/icons-24...) in the suggestions combo?
Added support to add (not
Added support to add (not yet remove) bookmarks.
nic