EditArea is a different way of using the online editing functions allowed by HTML. This technique, used most times to create WYSIWYG , is exploited in this case to provide a real code editor.
A normal TextArea field is transformed into a real editor with the ability to format the text, searching and replacing words and get a color code in real time. Among its features we notice:
- Simple integration through a single JavaScript script and a single call to a function of patch.
- Support tab
- Search and replace with regexp
- Supports code coloring for: PHP, CSS, Javascript, Python, HTML, XML, VB, C, CPP, Pascal, Basic, Brainf * ck
- Auto-indenting of new lines
- Numbering lines of code
- Multilanguage support: Croatian, Danish, English, French, German, Italian, Japanese, Polish, potoghese)
- Support for gzip
- Multiple instances
- Fullscreen
- Resizing the window in real time
- Possibility to extend the features through plugins
- Save and Load callback
- Work with prototype and mootools
An example of how to use it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | editAreaLoader. init ({ // id of the textarea to transform id: "exemple_3" / / id of the textarea to transform true , Start_highlight: true "8" , Font_size: "8" "verdana, monospace" , Font_family: 'verdana, monospace " "y" , Allow_resize: "y" false , Allow_toggle: false "fr" , Language: "fr" "css" , Syntax: "css" "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight, |, help" , Toolbar: "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlights, reset_highlight, |, help" "my_load" , Load_callback: "my_load" "my_save" , Save_callback: "my_save" "charmap" , Plugins: "charmap" "arrows" , Charmap_default: "arrows" }); |









Latest Comments
Giovambattista Fazioli : @ Nik: I'm happy! Good luck then!
Nik : I have Monday examining information on java, thanks to me you have been very useful, the book I was unclear ...
Mark : Thank you very much, I've lit
I solved it by setting [cc_objc] / / OptionViewController.m - ...
Giovambattista Fazioli : @ Mark: I suggest you think a more correct approach. If you run the subclass of the tab ...
louis : very clear and simple I have to admit that writing a pa hardly use delegates created by ...