EditArea: Rich Sourcecode Editor
Date : 2008 01 02 Category : Tech & DevelopmentEditArea is a free JavaScript editor for source code. This editor is designed to edit source code files in a textarea. The main goal is to allow text formatting, search and replace and real-time syntax highlight.
Features
Easy to integrate, only one script include and one function call Tabulation support (allow to write well formated source code) Search and replace (with regexp) Customizable real-time syntax highlighting (currently: PHP, CSS, Javascript, Python, HTML, XML, VB, C, CPP, Pascal, Basic, Brainf*ck) Auto-indenting new lines Line numerotation Multilanguage support (currently: Croatian, Danish, English, French, German, Italian, Japanese, Polish, Portuguese) Possible PHP gzip compression (compress the 12 core files to one file of ~20Ko) Allow multiple instances Full screen mode Possible plugin integration Possible save and load callback functions Possible dynamic content management Can work in the same environment than "protype" and "mootools"'s like libraries.You setup the text area, and then make sure to transform via something like:
PLAIN TEXT JAVASCRIPT:editAreaLoader.init({ id: "exemple_3" // id of the textarea to transform ,start_highlight: true ,font_size: "8" ,font_family: "verdana, monospace" ,allow_resize: "y" ,allow_toggle: false ,language: "fr" ,syntax: "css" ,toolbar: "new_document, save, load, |, charmap, |, search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight, |, help" ,load_callback: "my_load" ,save_callback: "my_save" ,plugins: "charmap" ,charmap_default: "arrows" });
