-
10 Sep 2008 7:47 AM #1
Custom TextArea with real-time syntax highlighting
Custom TextArea with real-time syntax highlighting
Hello,
I need to custom a textArea component as real-time syntax highlighting. Having a look in internet i found some projects about textArea syntax highlighting , i'm particular interested in codeMirror JavaScript program:
http://marijn.haverbeke.nl/codemirror/
In order to use this javascript program, you only need to link a js file and css in your html page that holds the textArea, like this...
Conclusion, How can I create some custom a textArea ext-gwt component, that includeCode:<script type="text/javascript"> var editor = CodeMirror.fromTextArea('code', { height: "350px", parserfile: "parsexml.js", stylesheet: "css/xmlcolors.css", path: "js/", continuousScanning: 500 }); </script>
all this features ? Is posible ?
ThanksV
-
11 Sep 2008 1:49 PM #2
it is possible, its just not easy in GWT unless you know what you are doing...

have a look at this... http://extjs.com/forum/showthread.php?t=44152
-
11 Sep 2008 11:31 PM #3
Thanks, seems interesting as rich editor integration, but i'm looking for syntax highlighting edit more simple, just focus on program lenguage as java, c++, xml highlighting .. ... how about codepress integration ?? I found some project http://extjs.com/learn/Extension:CodePress do you thing is posible to integrate with ext gwt text area component ? Could be really cool..
V


Reply With Quote