version 0.08, 23 September 2003. 4umi.com/web/bookmarklet/edit.htm
The errorchecker reports basic problems with unterminated strings and loops, and puts the cursor at the position of the offending character.
The link is updated with any changes in your code only when Format or Compress is Whenever you change the code in the editing area, either of these must be clicked to copy the script from the editing area to the link.
Format and Compress(top)
"Format" [Crtl+T or Alt+T] will add whitespace such as newlines and indentation. This makes it easy to read the code and edit it by hand. Click this button anytime during editing to quickly clean up after you.
"Compress" [Ctrl+S or Alt+S] will display the code on one line, like the 'live' script in the bookmarklet link. This is useful for positioning with absolute accuracy and copying directly editing bookmark properties using the single line interface of the operating system.
To store the script so you can try it on other pages, bookmark the link like any other by right-clicking it and choosing "Add to Favorites" or words to that effect. Or press the "Bookmark" button above the link, or type Alt+B or Ctrl+D.
In any case, a security question should pop up, to ask for confirmation. This is because the protocol of the bookmark is script rather than a fixed address. Multiple versions can be stored by
Find and Replace(top)
The Find/Replace button toggles two textfields and an array of buttons and checkboxes.
"Find Previous" and "Find Next" act relatively from the current cursor position in the editing area.
If "Match whole word" is checked, a string is only found if it has word boundaries immediately preceding and following it. A word boundary is any character that is not one of the 26 letters or 10 digits. This is useful if you find too many files without this criterium and have insufficient knowledge of regular expressions.
Regular expressions do not need to be on one line, newline characters are simply ignored. The 'g' flag is always off (use "Find All" and "Replace All" instead), the 'i' flag is set in the "Match case" box.
Type a number in the input field labeled "Go to" and click outside the field (for example in the editing area). The cursor will then be put at the indicated position in the script. This is useful when interpreting script error messages. Since the script that generated the error was on one line, it is best to use positioning in compressed mode.
The "Escape" button toggles space characters into their %20 escaped equivalent and back, so you can easily edit the code and still bookmark it safely in other browsers than IE. This button is not necessary in IE, but some other browsers terminate the line of code at the first space character outside a string.
Underlined letters are accessible with Alt.
Ctrl+A selects the code in the editing area even if it did not have focus.
Ctrl+C copies the code in the editing area if there is no selection.
Ctrl+D has been diverted to bookmark the link instead of the page.
Ctrl+T will format the code, update the link, and also execute the code (if no errors were found).
Ctrl+S will compress the code, update the link and also execute the code.
Alt+Z will jump the cursor to the bottom of the editing area.
Some browsers keep a really good history of changes in each or all textfields, which can be stepped through back and forth with the same keys as used in other programs:
Ctrl+Y will try to redo the last change in the editing area.
Ctrl+Z will try to undo the last change in the editing area.
Click the "Help" button again or here to close this Help screen.