Skip to content

Commit

Permalink
rename the branch from trunc to trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
cdolivet committed Jul 20, 2008
0 parents commit 21cd35f
Show file tree
Hide file tree
Showing 132 changed files with 20,591 additions and 0 deletions.
181 changes: 181 additions & 0 deletions _devel/extended_php_list.js

Large diffs are not rendered by default.

3,802 changes: 3,802 additions & 0 deletions _devel/mootools.release.83.js

Large diffs are not rendered by default.

2,264 changes: 2,264 additions & 0 deletions _devel/prototype.js

Large diffs are not rendered by default.

2,818 changes: 2,818 additions & 0 deletions _devel/rico_1.1.2.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _devel/test-iframe.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" ><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>EditArea - the code editor in a textarea</title> <link href="style.css" rel="stylesheet" type="text/css"> </head><body><div id='div'><iframe src='test.php' style='margin: 20px; width: 50%;height: 200px' id='iframe_test' ></iframe></div><input type="button" onclick='document.getElementById("div").style.width="600px"' value='resize' /><input type="button" onclick='top.document.body.cols = "*, 200";' value='resize3' /></body></html>
Expand Down
1 change: 1 addition & 0 deletions _devel/test.php

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions _devel/wiki.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
editAreaLoader.load_syntax["wiki"] = {
'COMMENT_SINGLE' : {1 : ';'}
,'COMMENT_MULTI' : {'<!--' : '-->'}
,'QUOTEMARKS' : {1: "'", 2: '"',
3: '====', 4: '===', 5: '==', 6: '__', 7: '//'}
,'KEYWORD_CASE_SENSITIVE' : false
,'KEYWORDS' : {
}
,'OPERATORS' :[
]
,'DELIMITERS' :[
]
,'REGEXPS' : {
'links' : {
'search' : '([^\\[])(\\[\\[[^\\]\\[]+\\]\\])()' // [[links]]
,'class' : 'links'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
,'boldface' : {
'search' : '()(\\*\\*[^\\*]+\\*\\*)()' // **bold**
,'class' : 'boldface'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
,'images' : {
'search' : '([^\\{])(\\{\\{[^\\}\\{]+\\}\\})()' // {{images}}
,'class' : 'images'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
,'codesection' : {
'search' : '([^\\(])(\\(\\([^\\)\\(]*\\)\\))()' // ((code sections))
,'class' : 'codesection'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
,'fieldsection' : {
'search' : '()(\\[\\[\\[[^\\]]*\\]\\]\\])()' // [[[fieldset]]]
,'class' : 'fieldsection'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
,'nowikisection' : {
'search' : '()(\\{\\{\\{[^\\}]*\\}\\}\\})()' // {{{nowiki}}}
,'class' : 'nowikisection'
,'modifiers' : 'g'
,'execute' : 'after' // before or after
}
}
,'STYLES' : {
'COMMENTS': 'color: green;'
,'QUOTESMARKS': 'color: blue;'
,'KEYWORDS' : {
}
,'OPERATORS' : 'color: #FF00FF;'
,'DELIMITERS' : 'color: #2B60FF;'
,'REGEXPS' : {
'boldface' : 'color: red;'
,'links' : 'color: red;'
,'images' : 'color: red;'
,'codesection' : 'background-color: #dddddd;'
,'nowikisection' : 'color: red;'
,'fieldsection' : 'color: cyan;'
}
}
};
215 changes: 215 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
**** v 0.7.1.2 ****
- Fix a bug on the full screen mode (regression added on 0.7.1.1)

**** v 0.7.1.1 ****
- Firefox 3 RC1 compatibility
- Code size reduction: 120Ko => 107Ko for edit_area_full.js

**** v 0.7.1 ****
- released under both LGPL and Apache license (you can use the one you prefer)
- it's now possible to get a readonly mode:
* new EditAreaLoader.init()'s option: "is_editable": true/false
* Possibility to switch edition mode by using the execCommand function: editAreaLoader.execCommand('editor_id', 'set_editable', !editAreaLoader.execCommand('editor_id', 'is_editable'));
- Added Ruby syntax (thanks to Patrice De Saint Steban)
- Fix a bug where the textarea lose the focus under firefox for Mac
- Minor other bug fixes

**** v 0.7.0.2 ****
- Fixed a bug with translation files containing non-latin caracters. Translations files must be in UTF-8.
- Added Czech, Macedionian and Russian translations


**** v 0.7.0.1 ****
- in multiple file mode, it's now possible to cancel the 'EA_file_close_callback' function. if the callback return false, the edited file won't be closed
- bug fix: if no syntax was defined in the main init() function in multifile mode, the first time the text was not highlighted


**** v 0.7 ****
- it's now possible to edit multiple files into one instance of EditArea. This (sponsored by Jupiter) feature comes with:
* new EditAreaLoader.init()'s option: "is_multi_files": true
* new editAreaLoader's functions: editAreaLoader.getCurrentFile(editArea_id), editAreaLoader.getFile(editArea_id, file_id), editAreaLoader.getAllFiles(editArea_id), editAreaLoader.openFile(editArea_id, file_infos), editAreaLoader.closeFile(editArea_id, file_id), editAreaLoader.setFileEditedMode(editArea_id, file_id, edited_mode)
* new callabacks: EA_file_switch_on_callback, EA_file_switch_off_callback, EA_file_close_callback
- look likes Safari 3 is working with EditArea
- add spanish translation (thanks Garito)
- add slovak translation (thanks Gabriel Schwardy)
- add SQL syntax definition file (thanks to Philippe Lewicki)
- the syntax selection plugin has been integrated to editarea core and load only needed files (the plugins was loading all the possible syntax files...). Toolbar button name: "syntax_selection", comma separated available syntax list: "syntax_selection_allow"
- add a 'compression' option in edit_area_compressor.php that allow to set where the code should be compressed or just packed (simple packed mode usefull for debugging)
- the yellow area that indicate the current edited line is now blue
- bug fix: parenthesis matching was not working correctly if there where an "<" between parenthesis

**** v 0.6.7 ****
- add a new plugin that allow the user to change the syntax definition in use. It adds a select in the toolbar. - plugin name to add to the plugin list: "syntax_selection". - plugin name to add to the toolbar list: "syntax_selection". - possible parameter to add to EditAreaLoader.init():
"syntax_selection_allow": (String) define a list separated by "," of possible language syntax to use (eg: "php,js,python,html")
- add Croatian translation (HR) (thanks to Ivan Vucica and Davor Cihlar)
- add BASIC, Brainf*ck, C, C++ and Pascal syntax definition files (thanks to Ivan Vucica and Davor Cihlar)
- add Iceweasel as a known working navigator (its a clone of Firefox)
- improved the php syntax by highlighting the variables ($...)
- reactivate gzip compression for IE7 (was desactivate for IE as it sometimes failed). (Let me know if you see that the load fails under IE7)
- pressing "enter" while being in the search box now perform a search.
- add Camino as a supported browser
- bug fix: when clicking between the bottom toolbar and the textarea (when there is only few lines of text), the textarea didn't get the focus
- bug fix: under IE the delete_instance() method was throwing an error
- bug fix: if the textarea to convert in an EditArea was in a frame (or iframe) getting back from fullscreen to normal display was not restoring the correct settings to the frame containing the textarea.
- bug fix (at least I hope): in IE if the textarea to convert in an EditArea was in a frame, resizing the frame was not correctly resizing the editor if it was in fullscreen.
- bug fix: in Opera the selectionned line was not rendered correctly if containing \t caracters (bug introduced in one of the latest version...)
- bug fix: "altgr+f" was openning the searchbox and avoid to write "[" and "]" in croatian keyboards.
- bug fix: in Firefox "ctrl+tab" was inserting a tabulation while switching active tab (window)

Note: v 0.6.5 and v 0.6.6 have been private release (change log is regrouped in v 0.6.7)

**** v 0.6.4 ****
- add replace_tab_by_spaces init() option which allow to replace all tabulation caracters typped in the text by a given number of spaces
- add min_width and min_height init() option for the minimum size in pixel for the editor
- add dutch translation files (NL) (thanks to Bart Bosma)
- pressing Shift+Tab when no text is selected now delete the tabulation before the cursor (if a tabulation is present directly behing the cursor)
- improve Python syntax (thanks to Andre Roberge)
- bug fix: the fullpage plugin was not working correctly when the Editor was placed inside several divs that have positioning of there own
- bug fix: one regexp used in edit_area_compressor.php was not compatible with latest PCRE version

- fix the my_load and my_save functions of the 'exemple_full.html' page

**** v 0.6.3.1 ****
- regression: restore monospace as default font
- add little improvements to the PHP compressor: allow to win 7 Ko on edit_area_full.js
- add the version number in the about popup
- bug fix: fix a regexp that was not compliant with newer version of PCRE
- bug fix: fix some bug with the fullscreen mode (still not perfect in Opera)
- bug fix: the close button of the help popup was not correctly translated
- bug fix: when deleting an instance of editArea toggle_off was called even if the editArea was not displayed


**** v 0.6.3 ****
- allow to use non monospace font using the font_family init option. Firefox get smaller tabulation with non monospace fonts. IE doesn't change the tabulation width and Opera doesn't take this option into account... new default font-familly: 'verdana,monospace'
- add fullscreen option in the toolbar and as an init() option.
- if the based textarea has a width (or height) in '%', EditArea will get the same '%' width (or height), allowing EditArea to be resized in the same time than the window.
- add many callback possibility: submit_callback, EA_load_callback, EA_unload_callback, EA_init_callback, EA_toggle_on_callback, EA_toggle_off_callback, EA_delete_callback (see documentation for more information)
- bug fix: when toggling from textarea to editarea, IE was almost of the time not keeping the selection
- bug fix: the brackets where still highlighted in red when being deleted
- bug fix: brackets where not placed correctly when the line contains html entitites (&amp; &quot; etc....)


**** v 0.6.2 ****
WARNING => POSSIBLE BREAK COMPATIBILITY:
- the load_callback now receive the 'id' of the textarea and no more a reference to the textarea. Developpers should use editAreaLoder methods rather than modfying directly the textarea.
- the save_callback now receive the 'id' of the textarea as first argument, and it's content in the second argument.

- EditArea is now compatible with javascript libraries like "prototype" (1.5) and "mootools" (release 83)
- add two function to EditAreaLoader: hide(id) and show(id), that will allow to completly hide/restore both EditArea and normal textarea (usefull when EditArea is included in tabs).
- it's no more possible to move the search window out of the frame.
- gecko_spellcheck option is now set to false by default.
- add a onchange_callback option (cf doc)
- bug fix: in IE when syntax highlight was on, clicking on the textarea outside the range of the text, the click wasn't taking into account.
- bug fix: references to the orginal textarea could be lost while using EditArea.
- bug fix: using insertTags, getSelectionRange when editArea was not focused, IE failed
- bug fix: main script could fail to load additionnal files in certain specific cases

**** v 0.6.1 ****
- compatiblity with Firefox 2 checked (was already compatible before).
- compatiblity with IE7 checked (was already compatible before).
- added possibility to call the editAreaLoader.init() function at any moment (no more limited to window load). Allow to replace an EditArea instance by a new one with other options.
- added new gecko_spellcheck option, this enables you to disable/enable the FF 2.0 spellchecker.
- added editAreaLoader.delete_instance(id) to allow to delete an EditArea instance
- Fix a bug where "Ctrl+G" wasn't openning anymore the go to line prompt box.


**** v 0.6.0.1 ****
- add italian translation (thanks to Luciano Vernaschi)
- add polish translation (thanks to Piotr Furman)
- improve deutsh translation (thanks to Felix Riesterer)
- add a little style improvement for buttons in search popup. they can't be splited in two line anymore
- change color for tags in html and xml syntax due to visibility problems


**** v 0.6 ****
- add plugins possibilies
- add editAreaLoader.insertTags function to allow easy tags insertion.
- improve undo & redo functionnality
- improve php compression: "edit_area_full.js" is 9 Ko smaller
- improve syntax highlight regexp for quotted string. \\" or \\' (or \\\\", etc...) will now effectively close quotted string
- add scrollbars to the popups when the popup's height is smaller than the editor's height
- add japanese translation file (thanks to ISHITOYA Kentaro)
- add possibility to add line-break in toolbar ("*")
- disable gzip compression for IE (see: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312496)
- bug fix: when submitting form while editarea toggled off, the post value was equals to the old content of editarea and not the visible textarea
- bug fix: under IE the editor was scrolling when pressing enter
- bug fix: when insterting text on first line there was an highlight desynchronization



**** v 0.5.3 ****
WARNING => POSSIBLE BREAK COMPATIBILITY:
- correct a spelling error: "toogle" become "toggle" in the whole code. This can perturb the initialization with the "allow_toggle" init parameters

- add a case sensitive option in syntax definition files
- improve html syntax definition file
- add xml syntax definition file
- add vb syntax definition file (thanks to Martin Gottlieb)
- add some function that will allow dynamic EditArea content management, taking into account if the editor is displayed or toggled off (editAreaLodaer.getValue(), editAreaLoader.setValue(), editAreaLoader.getSelectedText(), editAreaLoader.setSelectedText(), editAreaLoader.getSelectionRange and editAreaLoader.setSelectionRange()). See "javascript functions" documentation for more informations
- add a generic function (editaAreaLoader.execCommand) to allow to access EditArea's functions and datas
- add portuguese translation file (thanks to Leonardo Sapucaia)
- add compatibility to IE7 RC1


**** v 0.5.2 ****
- Opera improvement: text indentation is now working, and "go to line" is now working as in other browsers
- Bug fix: It was still possible to select text in search popup
- Bug fix: the "go to line" popup wasn't displaying anymore
- There was still some hard codded word in the search field => added them to translation files
- Bug fix: when multiple languages were used in the same page, there could have translation exchange between the different editors


**** v 0.5.1 ****
- Bug fix: the highlighted bracket was displayed on line 1 when it should be in line 2
- Bug fix: the highlighted bracket were bad displayed in IE
- Bug fix: their was some error in the optimisation process of the highlight mode
- Bug fix: their was a bug when moving the search popup on IE

**** v 0.5 ****
- Now released under LGPL
- Rewrite nearly from scratch
- Added Danish translation file (thanks to Peter Klein)
- Add python syntax


WARNING => BREAK COMPATIBILITY:
- the whole loading process (javascript include and init function call) is changed (but it's similar to the old version)
- the languages translation files are not stored in the same variable


IMPROVEMENTS:
- The whole code is more stable
- Allow several instance on the same page
- Faster to load
- The highlight process is more stable and there is nearly no more to use the "re sync" button
- Add support of Opera 9 (even if its still not perfect)
- Add the possibility to load a new compressed script of only 20Ko for the whole core script even if PHP is not installed
- The textarea can be toggled to an EditArea on window load or later
- The EditArea is loaded in a iframe => there is no more interaction with user css
- Support the reset action of a form
- Add support for "page up" & "page down" button
- There is now a waiting screen when toggling on the highlight syntax (but it can't be an animated one, even gif are not animated due to CPU load)
- All supported browsers can now change font-size

BUG FIXES:
- Sometimes while using the "toggle editor" button to turn of the editor, the standard textarea was expanded to the full size of the textarea content.
- When resizing the area the selection was lost
- Allow translation for some forgotten hard-coded word (the "move" button for search popup, and "font size", and keys word in help panel).
- It was possible to "drag" the buttons from the Search/Replace popup into the content of the textarea.
- On first display (when the files are not in cache) or with xhtml doctype there is a display bug (the content of the textarea exceed of 4px)
- when the cursor was at the beginning of the 1st line of the textarea, the caracter position was set to 0 instead of 1



***v 0.4****
- Increases syntax highlight proccess speed by 5 => allow a better live editing mode with syntax highlight.
- Now syntax highlight has a real language syntax. Text is parsing with rules depending of the language definition file. (limitation: there is only one language on the same time > doesn't allow to parse html and php on the same page).
- Syntax highlight can be easily extended with new code languages (there is currently: php, css, js, html).
- Add german language file (thanks to Olaf Brambrink).
- Fix some little bugs.




***v0.33***
- First release.
48 changes: 48 additions & 0 deletions docs/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>EditArea documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="doc_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class='header'>
<h1>About</h1>
</div>
<div class='content'>
<h2>General information</h2>
<p>EditArea is a free javascript editor for source code. It allow to write
well formated source code. That's no way a WYSIWYG editor.
</p>
<p>
EditArea is developed by Christophe Dolivet
(<a href='http://www.cdolivet.net/index.php?page=Contact'>contact</a>)
and is currently released
under the "LGPL" license, read the license agreement for details.
</p>
<h2>Features</h2>
<ul>
<li>Easy to integrate, takes only a couple lines of code.</li>
<li>Live syntax highlight.</li>
<li>Search and replace (with regexp).</li>
<li>Line numerotation.</li>
<li>International language support.</li>
<li>Allow to create new syntax or translation files.</li>
<li>Multiple instance on the same page.</li>
<li>Multiple browser support (see <a href='compatibility.html'>compatibility chart</a>
for more information).</li>
<li>Font resizing.</li>
<li>Toolbar customization.</li>
<li>Load and save callback function.</li>
<li>Possibility to use a gzip compressed version of the script (only 20Kb).</li>
</ul>

</div>
<div class='footer'>
<div class="indexlink"><a href="index.html">Index</a></div>
<div class='copyright'>EditArea - &copy; Christophe Dolivet - 2007</div>
<br style="clear: both" />
</div>
</body>
</html>
Loading

0 comments on commit 21cd35f

Please sign in to comment.