###### (c) 2001-2007, Medvedik, Juraj Simlovic, notepad
jsimlo.sk

# TED Notepad Manual

##### Version 5.3.1

(c) 2002-2007, Juraj Simlovic, jsimlo
jsimlo.sk

##### Table of Contents:

- Introduction
- Agreement
- Installation
- ChangeLog
- Usage, tips and tricks
  - Managing documents
  - Searching for specific text
- Basic commands reference
  - File menu
  - Edit menu
  - Search menu
  - Favourites
  - Clipboards menu
  - Options menu
  - View scrolling
  - Drag & Drop
  - .LOG extension
  - Command line parameters
  - Portable INI file
- Tools reference
  - Case tools
  - Newlines tools
  - Lines tools
  - Replacing tools
  - Text tools
  - File tools
  - Sorting tools
  - Reversing tools
  - Time/Date tools
  - Word Wrap tools
  - Text Filters
- Settings dialog
  - General page
  - File page
  - RE page
  - Favourites page
  - Filters page
  - Settings page
- RichEdit clone
- Hotkeys
- Frequently Asked Questions
- Appendix

Last update: Apr 18, 2007
Created and updated with: TED Notepad

# Introduction

TED Notepad is a growing freeware editor for true plain-text. It looks like a small Notepad, but is more and more fertile in innovative features, text-processing functions and other tools. All of them on hotkeys; all designed for quicker and advanced editing. The light-weight portable application fits on USB drive and loads instantly with no installation required. TED Notepad is designed especially for daily writing of notes, lists, scripts and html/php files.

Get ready for a simple text editor, yet full of new features and text tools - you will never learn them all. Don't type, ted it!

### Briefing

Because TED Notepad supports only very basic formatting, you cannot accidentally save special formatting in documents, that need to remain pure-text. This is especially useful, when creating html/php Web pages, because no special characters/formatting may appear in a html/php Web page source code.

Quite extensive set of features covers entire MS Windows Notepad, Metapad or Win32Pad and includes:

- Enhanced searching and replacing; second search;
- Plenty of hotkeys and some extra clipboards;
- Several kinds of word and phrase completion;
- All unicode characters and bi-directional support;
- Unicode, UTF-8, Unix and Mac file types;
- Text auto-indentation;
- Extensive text statistics;
- Recent and Favourites menu;
- Relative and selective Go to jumping;
- Options for auto-save, recovery and backup files;
- Option to revert, when file is modified from outside;
- and many, many other timesavers, options and settings.

Variety of text tools covers most of the text-based functions including:

- All types of case conversions;
- Advanced text replacing and character translating;
- Line indentation, unindentation, closing and tabifying;
- Columns cutting and numbers adding;
- HTML/XML Tags inserting;
- Reversing of text, lines and words;
- Full-scale line sorting;
- Searching for line duplicates;
- Word wrapping commiting and unwrapping;
- File inclusion and exclusion;
- and Filters Architecture for any user-defined plugins.

### Development

TED Notepad was designed to replace the popular Windows Notepad in every way. Besides that, it has been covered by a variety of text tools, functions, features, clipboards and hotkeys. Optimized to the highest performance; while keeping the intuitive conservative user interface. It was developed and improved with the know-how I gained during all the studies. And as my personal hobby, it is completely free. If you want to show your support, please, consider a donation to this project or just tell your friends. The more people like it, the more motivation there is to improve.

The application was developed at the Labs of Faculty of Mathematics and Physics of the Charles University in Prague; written in pure ANSI C language (no MFC, no C++, no Borland), using the system API functions, compiled with Microsoft Visual Studio 6.0. In contrast to other Notepad replacements, the development priority of TED Notepad was to create as stable and as fast as possible program. Without wizards, objects and toolbars; but with help and support of the other students there; I think it is now becoming what it ought to be.

### Future

Although not versatile enough, the MS Windows Notepad was indeed my daily text editor since forever. That's how I have started this project. To extend its possibilities. Just a little bit. Well, by now, TED Notepad is far beyond every initial hope. But still, I am sure you can find a lot of good ideas about how to enhance the Notepad and cherish the fame of a monkey application. Tell me about them! It's all about communication, the rest is technology...

# Agreement

This program is a FREEWARE. You are welcome to DISTRIBUTE it, but only AS IT IS and only as a FREEWARE. You must distribute ALL PARTS of the program, which include all the documentation and installation files.

You MAY NOT MODIFY this program or any portion of it, including translation or localization, without author's prior written consent. You may not modify the documentation and/or instalation files.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# Installation

There are several ways, how to get TED Notepad ready for use:

- First, you may use an Installer. It will install TED Notepad onto a computer, create some shortcuts in the start menu and optionally add some additional Filters. An installation as a default notepad replacement may be chosen, but also may turn out unsuccessful. See below.
- Second, you may install TED Notepad from a ZIP package by yourself, without use and help of any wizards and/or automated dialogs. This is usually the most preferred way when installing as a portable application.
- Third, you may run TED Notepad with no installation procedures at all. Just unpack from the ZIP package and run.

All three types are described further below.

### Basic installation with the Installer

Follow these steps to install TED Notepad using a NullSoft System Installer.

1. Download the Installer file of your choice and run it.

  Note: Please, be careful to choose an appropriate installation file according to your system. You will have to choose between Windows 95/98/Me and Windows NT/2000/XP versions. The version for Windows NT/2000/XP will not run on Windows 95/98/Me. On the other hand, version for Windows Windows 95/98/Me is unable to fully support all Unicode characters.

  Note: You may also choose between LE and RE clones. The LE clone is the default one and is recommended. Please, see chapter RichEdit clone for more details about the available RE clone before installing.

2. Follow steps displayed by the Installer.

  You will be able to choose, whether to install TED Notepad as a notepad replacement and as a standalone application. Additionally, you may choose to setup some basic Filters and External viewers as well. Finally, you may add a portable INI file to your installation.

  Installing as a standalone application will install TED Notepad into a specified directory, including the manual and all other files. This is the default installation type for a text editor.

  Installing as a notepad replacement will try to install TED Notepad as your default Notepad application. This may be considered as a violation by your System. Please, see File protection troubles below.

  The meaning and use of a portable INI file is described in chapter Portable INI file.

If you come to a problem during the installation, read all notes above and below and also review the on-line manual for any further changes. You can find the most recent version of the on-line manual at http://jsimlo.sk/notepad/manual/.

If you find no answer to your problem, feel free to contact me directly through a form at http://jsimlo.sk/notepad/. In such case, please, try to describe your problem as clearly as possible. Also note, that these pages are translated automatically by google. I do not understand German, Dutch or Portuguese... Really! I have already got several messages in Portuguese. I have not understood a single word.

Note, that this is a manual of TED Notepad version 5.2.1. If you are trying to install an older or newer version and have found no answer here, please refer to an appropriate manual version. You can find all reliable versions at http://jsimlo.sk/notepad/manual/.

### ZIP packages

These zip packages, downloadable on the same page as the Installers, contain all the files you will need for a hand-held installation and/or for a direct, i.e. with no installation at all.

To run TED Notepad without any installation, just unzip the content of a package to a directory of your own choice and run the TedNPad.exe. Keep the documentation file TedNPad.htm in the same directory as the executable application. Otherwise the manual will not be accessible from the application.

To install TED Notpead, unzip the content of a chosen ZIP package into a desired directory. Then, it may be worthwile to add the chosen directory to the PATH enviroment variable (e.g. by modifying the autoexec.bat or System variables).

When installing as a default notepad replacement this way, the desired locations are %WINDIR% and %SYSDIR%. Usually these locations are directories like C:\WINDOWS, C:\WINNT, C:\WINDOWS\SYSTEM, C:\WINDOWS\SYSTEM32 and C:\WINNT\SYSTEM32. It depends on the System type and version you use (ie. Windows 95/98/Me/NT/2000/XP).

To see what the desired locations may be, type this into the command prompt:
echo %WINDIR% echo %SYSDIR%

### Windows 95/98/Me notes

Please, be sure, you have downloaded a correct version, designed for Windows 95/98/Me. These older versions of windows may not be able to work with applications designed directly for Windows NT/2000/XP.

### Windows NT/2000/XP notes

Please, be sure to have Administrator rights when installing TED Notepad into Program Files directory. Without Administrator rights, you may only be able to run it directly with no installation. See ZIP packages above.

The system may reject TED Notepad as a notepad replacement. See File protection troubles below.

### How to modify file associations?

Find a file with an extension that you want to assign to TED Notepad. E.g. A *.txt file.

To modify the file associations, right-click on the file and choose Open with... and then Choose program... from the menu. A list of applications should appear. Select TED Notepad from the list. If TED Notepad is not listed there, click on Other... button to add TED Notepad to the list manually. Finally, choose Always use this program... and click the Ok button. The System should renew the file associations.

Note: This method is not available on some older versions of Windows. On these versions, you will have to try a second one described below.

Another method to modify the file association is to open Windows Explorer and click on the Folder Options menu item, located within View or Tools menu. A dialog opens with a page named File types where the file associations can be fully managed.

### File protection troubles

On several versions of Windows (especially on Windows 2000/XP) you may come across the problem of a file protection while installing TED Notepad as a notepad replacement. Even after a successful installation, TED Notepad may be overwritten back by the original Windows Notepad. This is because your System is trying to protect you and your data by protecting its basic set of applications.

Whatever tricks could be done to bypass this file protection may be considered as a violation by your System. It will try to resist the tricks and restore the original Windows Notepad application at all costs. Below come several descriptions of how to do such tricks, however this manual does not encourages you to do so. Proceed on your own risks.

#### All occurences

One such trick is to replace all occurrences of notepad.exe on your computer at once quickly (I said quickly!). Be sure to handle all these locations: %WINDIR%, %SYSDIR% and and %SYSDIR%\dllcache. You may need to write a script or a batch file to do so quickly enough. Windows will then start complaining about an unrecognized version of a notepad.exe and will ask for an installation CD. You can choose to ingore the warning and keep the unrecognized version.

Note, that if you use the Windows Installation CD/DVD in the future, TED Notepad may be (and probably will be) replaced back by the original Windows Notepad. Keep-up the fight or just give up.

#### File protection list

Another trick is to add notepad.exe to a list of unprotected files. In order to do that:

- Run command prompt, i.e. click the Start menu -> Run and type cmd there.
- In the command prompt type cd %WINDIR%\system32\Restore to change the directory.
- Then type attrib -S -H -R filelist.xml to clear hidden, system and read-only flags.
- Then type notepad filelist.xml to edit the file and add the highlighted lines into the Exclude section:

<Exclude> <REC>%windir%\system.ini</REC> <REC>%windir%\tasks\desktop.ini</REC> <REC>%windir%\win.ini</REC> `<REC>%windir%\notepad.exe</REC> <REC>%windir%\system32\notepad.exe</REC>` <REC>*:\AUTOEXEC.BAT</REC> <REC>*:\CONFIG.MSI</REC> <REC>*:\CONFIG.SYS</REC> </Exclude>

- Save the file and exit Notepad.
- Back in the command prompt, type attrib +S +H +R filelist.xml to restore the flags.
- Install TED Notepad as a notepad replacement.

# ChangeLog

This listing describes all major changes between previous versions of TED Notepad. Minor changes (that did not affect difference between major versions listed here) are omitted.

In the list:
  + indicates a new feature or tool,
  - indicates a bug fix,
  * indicates a modification in behavior or a note.

Version 5.3.1
  + Added: Indent selection is also possible by Tab key. Unindent by Shift+Tab key.
  + Added: Option to show full path and file name within the caption.
  + Added: Option to warn upon loading, if the same file is already opened in another window.
  + Added: Option to watch the opened file and ask for a Revert, when it is changed from outside.
  + Added: Option to auto-save the document every 5 minutes to a temporary recovery file.
  + Added: Option to keep the file name even when the loading has failed (for advanced users).
  + Added: Option to save UTF-8/Unicode files without the leading BOM (for advanced users).
  + Added: Option to load UTF-8/Unicode files without the leading BOM (for advanced users).
  + Added: Option about the default path for Open/Save dialogs.
  + Added: Option to force saving of read-only files.
  + Added: Support for saving of hidden/system files.
  + Added: Option to use the first line as a Filename instead of Untitled.
  + Added: Option to create backup files.
  + Added: Select Line feature.
  + Added: Date/Time and Long Date/Time tools.
  - Fixed: Statistics tool calculated values with active word wrapping.
  - Fixed: Saving of 3-byte long UTF-8 characters was half-broken.
  - Fixed: Occasional bug in backward searching routine.
  - Fixed: While saving filters/favourites into the Registry, old values were not being deleted.
  * Filter dialog is being skipped, when no parameters are required for an invoked filter.
  * Complete word dialod is being skipped, when there is only one possible completion.
  * BkSpace/Delete/Truncate Line features no longer works according to the actual word-wrapping.
  * While quoting/indenting non-empty lines, only zero-length lines are considered to be empty.
  * Saving/loading routines rewritten and optimized for better and safer performance.
  * When unicode characters are being loaded in a non-unicode version, warning is displayed.
  * The selection persists the Revert feature.
  * Application can also remember, whether the window was maximized upon exit.

Version 5.2.1
  + Added: Find Later.
  + Added: XML/HTML Tag tool.
  + Added: Relative jumping in Go to dialog.
  + Added: Selecting text in Go to dialog.
  + Added: Trim Tailing Spaces tool.
  + Added: Shift Lines Left tool.
  + Added: Remove Empty Lines tool.
  + Added: Reverse Words on Line, Reverse Each Line, Reverse Words tools.
  + Added: New variable (%n) for newlines in Cut Columns tool.
  - Fixed: Minor bug with Status Bar panel sizes calculation.
  * Enclose Selection places the caret between its strings, if the selection is empty.

Version 5.0.3
  + Added: Secondary search.
  + Added: Copy Similar Line.
  + Added: Copy Word Above.
  + Added: Cut Columns tool.
  + Added: Find Selected.
  + Added: Both searches are being saved, along with other settings.
  + Added: Full support of storing the settings in a portable INI file.
  + Added: Full support for Mac newlines. Convert from/to Mac tools.
  + Added: Insert Tabs as Spaces and automatic Smart Return auto-indentation.
  + Added: Tabify Indentation and Untabify Indentation tools.
  + Added: Non-empty lines counter into Statistics dialog.
  + Added: Delete Line, Truncate Line, BkSpace Line.
  + Added: Reverse Each Word tool.
  + Added: Option that leaves empty lines in the Unique Lines tool.
  + Added: Option that skips white-spaces in Quote/Indent Selection tool.
  + Added: File modified asterix flag within main window caption.
  + Added: More Status Bar info: Number of lines, line length and document length.
  + Added: Insert File Name and Insert File Title tools.
  + Added: To the next/previous Line, disobeying wordwrapping.
  + Added: Moveable and hideable Right Margin Bar.
  + Added: Setting that counts Line numbers unwrapped even in the Status Bar.
  - Fixed: Continuous whole words matching minor bug fixed.
  - Fixed: RE clone: Some newline bugs and minor searching bugs fixed.
  * Smart Return and Copying Return work with last non-empty unwrapped line.
  * Indent Selection tool does not indent empty lines.
  * Several features/tools are more compatibile with the Undo feature.
  * Goto Line and Goto Char command-line parameters are no longer exclusive.
  * The Tabs as Spaces setting also affects the Indent Selection tool.
  * Tools converting Unix/Mac newlines no longer work with an entire document.
  * New Search menu has been created for both searching mechanisms.
  * Hotkeys of Select Word, Add Word and Complete Word have been changed.
  * Application is returning negative error codes upon startup troubles.
  * Several routines have been optimized to achieve better performance.
  * Sorting tool optimized a bit. All line-oriented tools optimized.

Version 4.5.5
  + Added: Full UTF-8 files support.
  + Added: Full Big-endian UNICODE files support.
  + Added: Swap clipboard and selection (copy and paste together).
  + Added: Find previous, Select to previous features.
  + Added: Find/Replace works in both directions with whole word option enabled.
  + Added: Favourites menu.
  + Added: Whole words option in Extended Replace.
  + Added: Delete all other characters option in Translate Characters.
  + Added: File modified flag is also being shown within window caption.
  + Added: Text limit value is allowed to be zero for no actual limit.
  + Added: .LOG extension support from Windows Notepad.
  + Added: File Properties dialog of the current document.
  + Added: Word wrapping into printing support.
  + Added: Command line parameter: /p Print.
  + Added: Printing the selection only.
  - Fixed: Printing mechanism has been completely rewritten.
  - Fixed: Characters recognition is now fully user locale friendly.
  - Fixed: Window creeped-up when taskbar was located at the top of the screen.
  - Fixed: RE clone only: Find/Replace mechanism counted newlines incorrectly.
  * Sorting tool rewritten and optimized a bit. Supports better numbers sorting.
  * Enclose Selection tool modified. Enclose Selection dialog added.
  * Replace All mechanism now works with the entire document, as supposed to.
  * Find/Replace algorithms rewritten and optimized a lot.
  * Find/Replace mechanism modified to resemble the default notepad behavior.
  * Recent files are being remember even upon successful file saving.
  * Saving, loading and managing of settings modified.
  * Finally, all read and write share locks were removed.
  * A warning is raised when conversion from UNICODE to ANSI is not to be lossless.
  * A question about creating a new file is raised upon opening a missing file.
  * Some tools allowed on empty selections too.
  * To open Manual, it has to be in the same directory, as the executable is.
  * Assembly-level code optimizations. Speed increased, application size decreased.

Version 4.3.1
  + Added: Complete Word.
  + Added: Select to Next.
  + Added: Drag & Drop support.
  + Added: Copying Return.
  + Added: Revert.
  + Added: Add Next Word.
  + Added: Save and Exit as F10 hotkey.
  + Added: Full binary files support.
  + Added: Full and transparent UNIX-files support.
  + Added: Last Used Tool.
  + Added tools: Unique Lines, Close Lines.
  + Added tools: Unindent Selection, Unquote Selection.
  + Added tools: Include From File, Exclude Fo File.
  + Added tool: Extended Replace. (Without regular expressions. Use grep as a filter.)
  + Added tool: Filters Architecture. (Simple text-filtering plug-ins architecture.)
  + Added tool: More options and Show column button added to the Sorting tool dialog.
  + Added tool: Crc32 sum value to Statistics tool.
  + Added: Command line parameters: /l Goto line, /c Goto char, /s Set Selection.
  + Added: Command line parameters: /a Select All, /d Do Command.
  + Added: Command line parameters: /nl NoLoad Settings, /ns NoSave Settings.
  + Added: Variety of view scrolling hotkeys. See hotkeys list.
  + Added: Hotkeys to Extended Clipboards dialog.
  + Added: Option of definition of a word: Whether include underscore.
  + Added: Disobey Word Wrapping in Goto Line.
  + Added: RE clone only: auto URL detection.
  - Fixed: Troubles with the size and position of minimized/maximized main window.
  - Fixed: Multibyte characters save troubles and binary files load minor bug.
  * All read-share locks removed, write write-share lock removed.
  * Unwrap tool has been modified to preserve paragraphs.
  * Missing GetLongPathName export function added for Win95 and WinNT4.
  * Smart Return, Title Case and Compare Strings modified a bit.
  * Select Word, Delete/BkSpace Spaces (now Delete/BkSpace Word) features modified.
  * First RichEdit (RE) clone released.

Version 3.1.1
  + Added: Recently opened files.
  + Added: Delete Spaces, BkSpace Spaces.
  + Added: Possibility of replacing multiple lines.
  + Added: Automatic use of the selection in Find/Replace Dialogs.
  + Added: Dual font switching (Fixed/Proportional - Default/Custom).
  + Added tools: Date/time Tools.
  + Added sc-tools: Sort Ascending, Sort Descending.
  + Added tools: Indent Selection, Quote mail.
  + Added tools: Comit Word Wrap, Unwrap Selection.
  + Added: Left selection margin, Tab size, Default file type.
  + Added tools: Compare, Statistics.
  + Added: Select Word, Smart Return.
  + Added tools: Title and Sentence Case tools.
  + Added: Manual and instalation. Help was removed.
  * Sorting tool optimized. Reading/saving of files optimized.
  * Maintenance of Settings was completely modified.
  * Hotkeys of some tools were modified.

Version 2.6.1
  + Added tool: Sort - beta version of the sorting tool.
  + Added: Word Wrap option.
  + Added: Save Settings option.
  + Added: Tab characters can be inserted into dialog boxes easily.
  + Added tools: Reverse Text, Reverse Lines and Translate Characters.
  + Added: Saving of extended clipboards content.
  + Added: Warning that file length differs from loaded text length.
  + Added: Warning about Text Limit value.
  + Added tools: Enclose selection, Quote text.
  + Added: Save settings between sessions (Window position, Status bar, ...).
  + Added: Text Limit value -> Unlimited text size possibility.

Version 2.4
  * This version was something like the original Windows Notepad; with a status bar and nine extended clipboards; with text case conversion tools and UNICODE/UNIX/Win compatibility. It was full of hotkeys and dreams... Dreams to be implemented.

# Usage, tips and tricks

These chapters describes how to use TED Notepad. They also suggests several advanced techniques available in TED Notepad that may rapidly enhance user's work with plain-text documents, lists, scripts, HTML or PHP source files.

Chapter Managing documents describes the most simple basics about documents. Beside descriptions of creating, opening and saving documents it also describes how to use the Recent Files and Favourites menus to quicken access to specific documents. Furthermore, all supported file formats and types are discussed here. Advanced users will not find any useful information in this chapter.

Chapter Searching for specific text describes all the techniques of how to efficiently search for a specific phrase and/or replace it by another. Several advanced methods and methods for searching for phrases with multiple lines are described here. May be worthy to read even for more advanced users.

# Managing documents

### Opening and saving a document

To open an existing document, click on an Open... menu item in the menu File (or use hotkey Ctrl+O instead of clicking) and choose a file from the dialog. Previous document will be closed and a new one will be loaded from the chosen file.

To save changes on a document to a file, click on a Save menu item in the menu File (or use hotkey Ctrl+S). The document will be saved back to a file from which it was previously opened. If the document was never opened (it was created as a new document), TED Notepad will ask for a new file name.

In order to save a document to a different file that it saw opened from, click on a Save As... menu item in the menu File. Choose a new file name in the dialog. The document will be saved into the new file and the old file will not be touched anymore.

There is also a possibility to reopen a file by clicking on a Revert menu item in the File menu. All unsaved changes will be discarded and the document will be reloaded from the file. Note, that the same results may be achieved by opening the same file through the Open... menu item in the menu File.

Furthermore, TED Notepad offers several other features to enhance and simplify access to your files. These features are:

- Drag and Drop, which allows to open files by draging them from the Windows Explorer,
- Recent Files recollection, providing quick access to recently opened documents and
- Favourites menu, designed to bookmark documents that are used often.

Note, that TED Notepad allows to work with only one document at a time. In order to open several documents simultaneously, run TED Notepad several times and open each document in a different window.

### Drag & Drop

A file can also be opened by draging it from the Windows Explorer and dropping onto TED Notepad window. The document is loaded in the same way as if it was chosen in the Open dialog.

If multiple files are dropped, only the first one will be opened as described above. However, TED Notepad will ask, whether to load all other files too. If so, all files will be joinded into one document.

Note, that title of the document after such a join will remain equal to the document from the first file. The document itself will become modified as if the other files were typed in manually and when it is saved, all the text from all of the joined files will be written to the first file.

### Recent files

Note, that files that were not opened successfuly are not collected here. Such unsuccessful opens may occur for example when opening a binary file described later.

### Favourites

Use an Add File menu item in the menu Favourites to add the current document to this menu.

To access such document later, click on its file name in the Favourites menu. The document will be loaded from the file.

Finally, use a Manage List... menu item in the menu Favourites to open a dialog, where the documents from the Favourites menu can be managed, deleted and reordered.

### Revert

In case you need to reload the current document (either because it was modified by someone else, or because you want to go back to its older version), you may try to revert the document, instead of closing and re-loading. The Revert feature (hotkey Ctrl+E) does not save the document in the process, thus allowing you to discard all unsaved changes. If content of the file has been changed from outside of TED Notepad in the meantime, a new version of the file will be loaded. The selection will try to persist the loading, placing the actual insertion point to the same location. Also, the actual scrolling should persist unchanged.

### Binary files

TED Notepad is a plain-text editor which handles only basic formatting functions. This characteristic ensures that you will not accidentally add any formatting to files that need to remain pure plain-text (e.g. source files of HTML web pages).

However, it also prevents you to open and edit formatted documents (e.g. Microsoft Word *.doc documents). That is because such formatted documents are usually saved to special binary files. A binary file is a file that contains special undisplayable control characters along with text. And when such a binary file is opened in plain-text editors like TED Notepad, it is usually quite unreadable.

Also executable files (*.exe), movies (*.avi), music (*.mp3), etc. are saved to those binary files, therefore, do not bother to open them in TED Notepad unless you know, what you are doing.

### File formats

TED Notepad allows to open and save files in different file formats in order to help users to manage documents with different character sets in different languages. These file formats are ANSI, UTF-8 and both Unicode file formats. You can see the actual used file format in the Status bar.

To modify file format of a specific file, open such file in the TED Notepad. Then double-click on the Status bar in order to modify the format. When the desired format is set, save the document in order to update the file.

Note: The Unicode file formats are much more complex than ANSI file format is. Therefore, when using the UNICODE versions of TED Notepad (i.e. the one intended for Win NT/2000/XP/Vista), it is possible to write special characters to the document, that the ANSI file format does not support at all. In such cases, saving the document in the ANSI file format would lead to substitution of those characters. Such substitution, however, is one way only and cannot be reverted later upon opening. Therefore a warning and a question is raised in such situation, whether to continue the saving.

Note, that these file formats does not affect the way a document is displayed on a screen or the way it is printed. They only affect the way the document is saved to a file.

Tip: See the File page of the Settings dialog, if you need to force saving and/or loading files without BOM.

### Unix/Mac files support

Besides the file formats mentioned above, files can also differ in type of newlines they use. These newlines are special characters that are used to determine, where lines of a document break. Different systems use different characters to do so.

By default, these differences are automatically recogized by TED Notepad and Unix or Mac files are converted transparently upon any loading and/or saving. This behavior, however, may be modified through settings that are described later in chapter File page of the Settings dialog.

To modify newlines in a specific file, open such file in the TED Notepad. Then double-click on the Status bar in order to toggle the format of the newlines. When the desired format is set, save the document to update the file.

Note, that other editors may not be able to understand the Unix or Mac newlines and may load the document incorrectly. Even TED Notepad fails to do so, if the default behavior is turned off through the settings noted above.

Therefore, it is recommended to keep your files with Windows newlines while working on Windows and convert it to Unix or Mac only if the file is to be ported to a respective system.

Note, that the format of newlines does not affect the way the document is displayed or printed. It affects only the way the document is saved to a file.

# Searching for specific text

### Basic searching

The most basic and also the most conservative way of how to search for a specific text is through a Find dialog. In order to invoke it, click on a Find... menu item in the menu Search. Alternativelly, you may try a hotkey Ctrl+F to invoke the dialog faster and without using the mouse.

Note, that the document beneath the dialog is still accessible by the mouse. You can click in the document to change the actual caret position. The search is usually performed from this caret position, therefore, it may be useful to change it from time to time while subsequent searching.

Type a phrase into the edit box and click a Find Next button. The phrase will be searched for and then its occurrence selected, if found. Click the Find Next button until you find the location you have been searching for. Then, click on a Cancel button in the dialog, when done, to close the dialog.

When such a search is being performed, it is also saved for later use. To access this saved search, click a Find Next menu item from the Search menu (or use a simple F3 hotkey) to search for the same phrase again. The search will be started from the actual caret position as if the Find dialog would have been invoked and the Find Next button clicked there.

### Direction of searching

There is an option in the Find dialog described above considering the direction of search. Defaulty the search is performed downward, which means, that the phrase is being searched for behind the actual caret position, down to the end of the document. When this option is turned to upward direction, the phrase is being searched for before the caret position, up to the beginning of the document.

Also a Find Previous menu item from the menu Search, that is similar to the Find Next menu item described above, is about the directions. The Find Previous (or its hotkey Ctrl+F3) does the same as the Find Next does, but in the reversed direction.

Note, that usually the Find Next searches after the caret and the Find Previous searches before the caret. However, if the direction in the Find dialog is chosen to be upward, then the meaning of directions of all search techniques is reversed.

Therefore, after chosing the upward direction in the Find dialog, the Find Next searches before the caret and the Find Previous searches after the caret. This may be a little confusing but it is usually the desired behavior anyway.

### Matching case and matching words

Two more options from the Find dialog described above are options for matching case and matching whole words.

Defaultly, the search is performed without matching case, which means, that phrases like John and JOHN are considered to be the same. They actually are, but the second one is written all in capitals. If you somehow need to search for a specific phrase and it does matter whether the phrase is written in capitals or not, turn this option on.

The whole words choice is an option that turns a special check on, that is performed on every occurrence of the specified phrase. This check is about whether the occurrence is a rounded-off word. That means, that an occurrence of the phrase is really found only if there are no word letters directly adjacent to it. In other words and using an example, searching for phrase john will be successful in text like this: hi john, how are you?, but unsuccessfull in text like this: hi johnny, how are you?

### Select to ...

Searching for a phrase while keeping the actual selection is not a problem in TED Notepad. Use an advanced Select to Next and a Select to Previous menu items from the menu Search instead of the Find Next and the Find Previous. These special types of searching search for the specified phrase exactly the same way the Find Next and Find Previous do, but instead of selecting an occurrence, the selection is extended in order to cover the the found occurrence, not moved.

Example: (The inverted white text represents the selection.)
hi `johnny,` how are you?

The Select to Next searching for phrase are will result in:
hi `johnny, how are` you?

### Advanced quick-searching

A very common technique of how to search for exact phrases from the document is to select one such occurrence in the document, copy it to the clipboard invoke the Find dialog and then paste the clipboard into the dialog. Sure, its working but you have only one system clipboard available and working in the Find dialog, don't you?

A simple an easy way how to skip the copy and paste is to select the text and invoke the Find dialog while selected. TED Notepad will copy the selection into the dialog automatically.

Usually, a search is performed with default options, like the default downward direction, ignoring case and with no whole words matching. In these cases, an advanced user would just select some text, copy the selection into the dialog and immediatelly start the search for a next occurrence. Why bother with the dialog then? Only to enter the phrase?

For this very specific, but most frequently used technique, a special Find Selected menu item is present in the menu Search. Select a phrase, that you want to search for and click on the Find Selected menu item. Alternativelly, a hotkey Alt+F3 may be used to quicken the technique to the most efficient level. The selection will be used as a phrase that is being searched for.

When you want to setup a search with Find Selected, but do not actually want to start searching immediately, use Find Later menu item (or simply hit Alt+Ctrl+F). Find Later defines a new search exactly as Find Selected does, but does run the actual search routine.

Note, that both Find Selected and Find Later are regular searches. Therefore, you may use all the Find Next, Find Previous, Select to Next and Select to Previous features to search for more occurrences at any later time.

Tip: Using the Find Later feature may help when you need to rewrite some specific phrase all over the document, but Replace All is not possible. You can start a search for the selected phrase with Find Later, then rewrite the selection before searching, and only then use the Find Next for more occurrences.

### Searching for multiple lines - why not?

The only and usual reason, why a user may not search for a phrase that consists of several lines is very simple: the common Find dialog does not allow to enter more than one line at a time. As the phrase, that is being searched for must be written very specifically, there is usually no way to search for a text that is written on two successive lines.

However, according to the description of the quick-searching technique above, a user does not have to open the Find dialog to start a search at all. By the Find Selected feature, it is possible to select any text, even text that spreads over multiple lines and start a new search. Then, only those occurrences that spread over multiple lines will be found.

For example, you may want to search for a specific word, but only for those occurrences of the word, where the line breaks directly after the word. To do so, you must have at least one such occurrence of that word followed by a line break. If you do not have one or do not want to search for one manually, type the word and break the line. You may delete it later, right after starting the search. Then select the word and do not forget to select the line break too. Then use the Find Selected to start a new search.

Note: A line break can be selected exactly the same way as any other single character. Therefore, to select a line break that follows to the right from the selection, just hold down the Shift key and press the Right Arrow once to select one character to the right, which would be the line break.

Tip: To delete the word you might have needed to type to start such a search, use the Undo feature.

### Replacing the occurrences

To automatically replace occurrences found while searching, use a common Replace dialog. To invoke this dialog, click on a Replace... menu item in the menu Search.

The Replace dialog is quite similar to the Find dialog. Actually, the searching part is nearly the same. Enter a phrase to search for into the first edit box and a phrase to be used for replacing occurrences to the second one.

Along with the Find Next and the Cancel buttons, there are two more: A Replace button and also a Replace All button. Also note, that the direction is missing. Replacing may not be done upwards.

Use the Find Next button the same way as in the Find dialog to find a location to be replaced and click on the Replace button. The actually selected occurrence will be replaced.

Note: If no occurrence is actually selected while clicking on the Replace button (i.e. no selection is made at all or the selection does not consist of an occurrence), next occurrence is automatically being found before replacing.

The Replace All button replaces all occurrences present in the document at once. The search always start at the beginning of the document, no matter where the caret is, and continues until the end of the document.

Note: The replacing is not recursive and/or auto-repetitive in any way. Therefore, consider a situtation of replacing a phrase of two spaces with a phrase of only one space, in order to rip multiple spaces off the document. If there is a sequence of ten subsequent spaces in the document, you will have to use the Replace All button several times to shrink those ten spaces into one single space. Exectly four times for this ten-spaces example.

Note, that even a replacing search is a search, therefore it is saved and may be used later in all the Find Next, the Find Previous, the Select to Next and the Select to Previous, etc. features described above.

### Advanced replacing methods

Note, that while you may search for a phrase that spreads over multiple lines, there is no way to specify such phrase while replacing, because the Replace dialog is required. However, an Extended Replace tool is available for replacing of even these phrases. See chapter Replacing tools.

Tip: To Replace all when too many occurrences are awaited, or to Replace all within the selection only, use much faster and selection-oriented Extended Replace tool (hotkey Alt+Ctrl+R). See chapter Replacing tools.

Tip: If you need to replace single characters for other single characters, for examle when you need to get rid of encoding or punctuation, use the Translate Characters tool instead (hotkey Alt+Ctrl+T). See chapter Replacing tools.

### More tips with searching

Tip: If you need to select a text between an exact phrase, define such phrase in the Find dialog and do not forget to hit the Find button at least once before hitting Cancel to start a search. Then place the caret somewhere between those phrases where the text is and hit Select to Next (hotkey Shift+F3) and Select to Previous (hotkey Ctrl+Shift+F3) in order to extend the selection according to the phrases. Note: The phrases will be included in the selection.

Tip: If you are writing a list in HTML document and using <LI> tags, you may want do specify a search for such <LI> phrase. Then by hitting the Select to Previous (hotkey Ctrl+Shift+F3) feature, entire such list item, that you actually stand on with the caret, will be added to a selection along with the <LI> tag.

# Basic commands reference

This chapter describes all basic commands and features available within the menu and window of TED Notepad, except the Tools menu. See chapter Tools reference for more details on Tools.

##### Table of Contents:

- File menu
- Edit menu
- Search menu
- Favourites
- Clipboards menu
- Options menu
- View scrolling
- Drag & Drop
- .LOG extension
- Command line parameters
- Portable INI file

# File menu

#### New (Ctrl+N)

Creates a new empty document. TED Notepad may ask, whether to save the current document before creating a new one.

#### Open... (Ctrl+O)

Shows the Open dialog and then opens selected file. TED Notepad may ask, whether to save the current document before opening a new one.

#### Save (Ctrl+S)

Saves the current document to a file from which it was loaded or to which it was saved for the last time. If no such file was specified before, TED Notepad will ask to choose one.

#### Save As...

Asks for a file name to save the current document to and then saves the document to that file.

#### Revert (Ctrl+E)

Reverts (reloads) the currently opened document. All unsaved changes will be lost. If content of the file has changed from outside of TED Notepad in the meantime, a new version of the file will be loaded. The selection will try to persist the loading, placing the actual insertion point to the same location. Also, the actual scrolling should persist unchanged.

#### Encoding: ANSI/Unicode/UTF-8 (Ctrl+U)

Toggles between saving in ANSI, UTF-8 and both Unicode file formats. You can see the actual state of this option in the Status bar too.

Note: This option can be toggled also by double-clicking on the Status bar field.

See chapter Managing documents for more details on these file formats.

#### Newlines: Win/UNIX/Mac (Ctrl+I)

Toggles between saving in UNIX, Mac and the default Windows file format. You can also see the actual state of this option in the Status bar.

This option may be toggled also by double-clicking on the Status bar field.

See chapter Managing documents for more details on file formats.

#### Print... (Ctrl+P)

Shows the Print dialog and the prints the current document.

Note: While the document is being printed, long lines are wrapped to fit on the page. However, the lines are wrapped to fit the sheet, therefore the actual word wrapping used while displaying the document on the screen may be different. If you want to print the document with lines wrapped the same way as they are wrapped while being displayed, use Commit Word Wrap tool before printing. See chapter Word Wrap tools for more details.

Versions note: Prior to 5.0.1, There were several issues with printing and word wrapping during the printing. The text was not always wrapped correctly. Some early versions did not wrap the lines at all. 5.0.1 and above should be able to print correctly, as described above.

#### Properites... (Ctrl+J)

Shows the system Properties dialog of the current document. This feature is dissabled, when no document was loaded or when a new document has not been saved yet, because there is no document to show the dialog for.

#### Minimize To Tray (Ctrl+M)

Minimizes (hides) the main application window and adds a small icon to the System Tray area. (i.e. Task Bar area for icons, near the clock.)

To restore (unhide) the window back to its previous position, just click on the icon.

#### Recent Files menu

Shows up to 10 recently opened files.

Note, that files that were not opened successfuly are not collected here. Such unsuccessful open may occur for example when opening a binary file.

Note: Recent Files recollection can be turned off in the Settings dialog. See chapter General page of the Settings dialog.

#### Exit (Esc)

Closes the current document, then quits upon success. TED Notepad may ask, whether to save the current document before closing.

Note: An optional setting may disable the Esc hotkey. See chapter General page of the Settings dialog.

#### Save and Exit (F10)

Saves and closes the current document, then quits upon success.

#### Exit wihout saving! (Shift+Esc)

Closes the current document, but does not ask about to save it! Then quits.

No recently made settings, Recent files, Filters nor Favourites will be saved.

Note: An optional setting may disable the Shift+Esc hotkey. See chapter General page of the Settings dialog.

Tip: Run TED Notepad with /ns command line parameter in order never to save any settings. See chapter Command line parameters.

# Edit menu

#### Undo (Ctrl+Z)

Undoes the last action.

RE clone specific: Tip: A multi-level Undo feature is available. See chapter RichEdit clone.

#### Redo (Ctrl+Y)

RE clone specific: Redoes the last undone action. See chapter RichEdit clone.

#### Cut (Ctrl+X) (Shift+Del)

Deletes the selection and puts it into the Clipboard.

#### Copy (Ctrl+C) (Ctrl+Ins)

Copies the selection into the Clipboard.

#### Paste (Ctrl+V) (Shift+Ins)

Pastes the content of the Clipboard to the actual insertion point or replaces the selection, if any.

#### Swap (Ctrl+K) (Ctrl+Shift+Ins)

Copies the selection into the Clipboard and replaces the selection with previous content of the Clipboard. If no selection is found, it works the same way as Paste does.

Tip: It is useful to rotate several pieces from the document without having to put one of them aside for that while. Imagine that you have two words and you need to swap them. Just select the first of them, use Copy and then use Swap (hotkey Ctrl+K) on the other one. Finally, go back to the first one and use Paste. This way you can rotate as much things as you need.

#### Go to... (Ctrl+G)

Shows the Go to dialog and then moves the caret to a specified location.

To jump relatively to the current position, check Jump relatively.

To select the text that lies between the current position and the new specified location, check Select leaped text. If there is some text already selected, the selection is extended only. Therefore, if the specified location is inside the actual selection, nothing happens.

Tip: Combination of Jump relatively and Select leaped text can help to easily select text of specific length.

Tip: An optional setting may adapt the Go to Line behavior when the lines are wrapped. See chapter General page of the Settings dialog for more details.

RE clone specific: There is a difference in the RE clone in the Go to Char behavior. See chapter RichEdit clone for more details.

#### Select All (Ctrl+A)

Selects all text in the document.

#### Select Line (Ctrl+Num*)

Selects the entire line, which contain the actual insertion point; or adds another line to the selection, if any.

#### Select Word (Ctrl+Space)

Selects an entire word, all white-spaces or a single character otherwise, according to what begins or continues to the right from the actual insertion point. If there was a selection before, it is de-selected and then a new selection is made. Therefore, if this feature is used subsequently several times, the selection will crawl through the text, word-by-word.

Tip: If you need to select a word, but the double-click on the text selects a lot more than you wish, use this Select Word (hotkey Ctrl+Space) that behaves more softly in this manner.

Tip: If you are using Ctrl+Right Arrow to jump through words, but the jumps are too long, try this Select Word (hotkey Ctrl+Space) that behaves more softly in this manner. Note, that you will have to de-select the text, once you reach the desired position.

#### Add Next Word (Ctrl+Shift+Space)

Uses Select Word feature (see above), but does not de-select the selection, if any. It extends the actual selection instead.

Tip: If you need to select several words, but the double-click on the text selects a lot more than you wish, use this Add Next Word (hotkey Ctrl+Shift+Space) that behaves more softly in this manner.

#### Delete Word (Ctrl+Del)

Deletes the selection, if any, and then a word, all white-spaces or a single character otherwise, according to what begins or continues to the right from the actual insertion point.

#### BkSpace Word (Ctrl+BkSpace)

Deletes the selection, if any, and then a word, all white-spaces or a single character otherwise, according to what begins or continues to the left from the actual insertion point.

Obcas mam pocit, ze pisem uplne predpokladatelne, ale zaroven sprosto popisatelne veci o veciach, ktore su i tak vsetkym intuitivne jasne. Zaujimalo by ma, ci bezny uzivatel skor pochopil intuitivny nazov typu BkSpace Word, alebo ten divny definicny popis, mimochodom plne korektny, co som zo seba prave vypotil... :-)

#### Delete Line (Alt+Del)

Deletes the actual line. If there is any selection it is deleted as well.

Note: If a selection is made from a middle of one line and extends to a middle of another one, the entire selection is deleted and then the rest of the last line. This is similar to deleting the selection at first and then using Truncate Line below.

#### Truncate Line (Ctrl+Shift+Del)

Deletes all characters from the actual insertion point up to the end of the line. If there is any selection, it is deleted as well. If the line is wrapped due to actual word wrapping, it is deleted only up to the point, where it was wrapped.

#### BkSpace Line (Ctrl+Shift+BkSpace)

Deletes all characters from the actual insertion point up to the beginning of the line. If there is any selection, it is deleted as well. If the line is wrapped due to actual word wrapping, it is deleted only up to the point, where it was wrapped.

#### Smart Return (Ctrl+Enter)

Auto-indents the text after returning to a new line by replicating all white-spaces from a first non-empty previous line. The replication stops, when the previous insertion point is reached or any non-white-space character is found.

Note: Usually within TED Notepad, a non-empty line means a line that contains no graphs. This is not the case with this feature. Smart Return always replicates white-spaces from a first previous line, that is of non-zero length.

Tip: When you are writing a list and you want each item to be indented (i.e. have some spaces at the beginning), type those spaces while writting the first item. TED Notepad will learn, how much of them you actually want for the list. Then hit Ctrl+Enter key combination each time you would have used the Enter key. This way, each line would contain spaces copied from the previous line, thus all lines of the list would be indented.

Versions note: The indentation works regardless to word wrapping, but only in versions of 5.0.1 and above. Prior to version 5.0.1, this feature worked with previous line according to the actual word wrapping.

#### Copying Return (Ctrl+Shift+Enter)

After returning to a new line, copies all characters from the first non-empty previous line, up to the previos insertion point.

Note: Usually within TED Notepad, a non-empty line means a line that contains no graphs. This is not the case with this feature. Copying Return always replicates white-spaces from a first previous line, that is of non-zero length.

Tip: If you are writting a list and each of the lines starts with the same text (e.g. the same html tags), you may try to type the part of the line, that is the same for all of the lines and then hit Copying Return (hotkey Ctrl+Shift+Enter) subsequently several times. The text you have typed on the first line will be easily copied to several new lines this way. Then you may return to the first line and type the rest of it. When finished, use Ctrl+Down Arrow to move to the end of a next line.

Note: Ctrl+Down Arrow moves the caret to the next line regardless to any actual word wrapping, to a corresponding position. If you will use the technique described above, the next line shall always be short enough for the Ctrl+Down Arrow to move the caret to the very end of a next line.

Note: Copying Return feature is disabled, when the selection is not empty, because the results would be usually undefined or unwanted according to the selection.

Versions note: The indentation works regardless to word wrapping, but only in versions of 5.0.1 and above. Prior to version 5.0.1, this feature worked with previous line according to the actual word wrapping.

#### Copy Word Above (Alt+Ctrl+Space)

Takes the rest of the word that is above the actual insertion point and copies it into the document.

Copy Word Above searches within the character column above the actual insertion point, checking line after line, until it finds a line that is long enough to provide such word. Note, that it uses a physical character column, assuming that all characters are equaly wide. When using a proportional font, which has characters that are not equaly wide, Copy Word Above may seem to work in a strange and peculiar way. This is beacuse it was primarily meant to be used with fixed-width fonts.

Note: Copy Word Above always works with unwrapped lines, even if the word wrapping is turned on.

#### Copy Similar Line (Alt+Shift+Space)

Takes the rest of the word that is above the actual insertion point and on a line, which starts with the same phrase, and copies it into the document.

Copy Similar Line searches within the lines above, checking line after line, until it finds a line that contains the same phrase as the current line, considering up to the caret position, and also that is long enough to provide such word. Note, that it uses a physical character column, where all characters are equaly wide. When using a proportional font, which has characters that are not equaly wide, Copy Similar Line may seem to work in a strange and peculiar way. This is beacuse it was primarily meant to be used with fixed-width fonts.

Note: Copy Similar Line always works with unwrapped lines, even if the word wrapping is turned on.

Note: Copy Similar Line searches for lines in a case insensitive way.

Tip: If you are writting a list and each of the lines starts with the same phrase (e.g. I would like to do ...), you may use this Copy Similar Line at the beginning of the each such line. Hit Alt+Shift+Space hotkey several times, up until you reach the position where the lines shall differ. This may save a lot of typing or copy-pasting. Note, that Copy Similar Line always searches for a similar line, thus you may also work with two or more such phrases (e.g. I would like to do ... and I would hate to do ...) simultaneously. Just use Copy Similar Line up until the position, where they differ, then give it a hint of several characters (e.g. like or hate) and then keep copying until no more hints can be given.

#### Complete Word (Ctrl+D)

Tries to complete an (unfinished) word according to the dictionary calculated from the actual document. E.g. Completes word hel to hello, i there was a hello already in the document.

More accurately, it takes a word just before the caret as a pattern and then searches the entire document for any matching words that consist from that pattern plus some more word letters appended. Matching words are uniqued and displayed in a listbox to be chosen for the completion.

Note, that the document must already contain the word hello to be able to complete pattern hel to hello. Furthermore, if the document contains word help too, the pattern hel can be completed to both hello and help. User may always choose, which one, from a dialog.

The search for matching words is performed with ignoring case, but matching words are then uniqued in a case sensitive way, therefore completion of pattern hel may result in matches like: Hello, hello, help and also HELL.

Optionally, matching words can be sorted alphabetically in the Complete Word dialog. Otherwise, if unsorted, their order is the same as they precede the caret. Therefeore, when typing a sentence What a word can cause to the wide wild world. and then trying to complete a pattern w in a next sentence, matching words would follow as: world, wild, wide, word and What. For details on turning the sorting on in this dialog, see chapter General page of the Settings dialog.

Note: The pattern is a part of a word just preceding the actual caret position. Therefore, no selection is allowed. Furthermore, when completion is invoked inside of a word, only the preceding part of this word is taken as a pattern.

Note: When a word completion is about to be used without a preceding word (e.g. the caret is placed after a white-space or some other non-word character), all words in the document are matching. The complete word listing returned in such case may be quite lengthy, therefore, use this feature carefully on very big files.

# Search menu

#### Find... (Ctrl+F)

Shows the Find dialog. After entering search conditions, searches for a specified Find what phrase within the document.

If the Down direction was specified, search is performed after the actual insertion point. Otherwise (for the Up direction) it is performed before the actual insertion point.

Optionally, a whole word option enables to search for whole words only. That means, that a phrase is located in the document only if it is the Find what phrase and also if no word letters are found directly before and after the phrase. Note, that the phrase itself may consist of non-word letters at will, only the context around the phrase is tested.

Furthermore, match case option allows to match case upon searching.

Note: The Find dialog sets and works with the primary search mechanism only. To work with secondary search, see Look for Selected, described later in this section.

#### Find Next (F3)

Searches for a next occurrence of the recently specified search within the document after the actual insertion point. If no recent search was specified, shows the Find dialog.

Note, that if you specify an Up-ward search, the previous occurrence becomes the next one and vice versa.

Note: Works with the primary search mechanism.

#### Find Previous (Ctrl+F3)

Searches for a previous occurrence of the recently specified search within the document before the actual insertion point. If no recent search was specified, shows the Find dialog.

Note, that if you specify an Up-ward search, the next occurrence becomes the previous one and vice versa.

Note: Works with the primary search mechanism.

#### Find Selected (Alt+F3)

Resets the primary search. Sets the Find what phrase to the content of the selection, sets a Down-ward searching direction and turns off both whole word and match case options. Then searches for a next occurrence.

Tip: There are no restrictions on what the selection may or may not contain. You may easily select text over multiple lines and start a search for such a multi-line phrase.

#### Find Later (Alt+Ctrl+F)

Resets the primary search. Sets the Find what phrase to the content of the selection, sets a Down-ward searching direction and turns off both whole word and match case options.

Note: In contrast to the Find Selected feature above, this one does not search for the next occurrence immediately.

#### Replace (Ctrl+R)

Shows the Replace dialog. After entering search conditions and a Replace with phrase, searches for a specified Find what phrase within the document and replaces it with the Replace with phrase.

See the description of Find... above for other informations about search conditions and/or options.

Tip: To Replace all when too many occurrences are awaited, or to Replace all within the selection only, use much faster and selection-oriented Extended Replace tool (hotkey Alt+Ctrl+R). See chapter Replacing tools.

Tip: If you need to replace individual characters for other characters, for examle, to get rid of encoding or punctuation, use the Translate Characters tool instead (hotkey Alt+Ctrl+T). See chapter Replacing tools.

Note: The Replace dialog sets and works with the primary search mechanism.

#### Select to Next (Shift+F3)

Searches for a next occurrence of the recently specified search using Find Next feature. Then extends the selection to cover the found phrase too, if any.

Note: Works with the primary search mechanism.

#### Select to Previous (Ctrl+Shift+F3)

Searches for a previous occurrence of the recently specified search using Find Previous feature. Then extends the selection to cover the found phrase too, if any.

Note: Works with the primary search mechanism.

#### Look for Selected (Alt+F2)

Starts a new secondary search. Searches for a next occurrence of the content of the actual selection. This secondary search is always downward and ignoring case.

Tip: There are no restrictions on what the selection may or may not contain. You may easily select text over multiple lines and start a search for such a multi-line phrase.

Tip: Imagine that you want to search for a word name after an id 12345. There are hundreds of name-s in the document but only one such id. And you want to search for id-s like this quite repeatedly. Well, define a second search for the word name, then find a desired id and hit second search... There you are, instead of scrolling again and again.

#### Look for Next (F2)

Searches for a next occurrence of the recently specified secondary search within the document after the actual insertion point.

Note: Works with the secondary search mechanism.

#### Look for Previous (Ctrl+F2)

Searches for a next occurrence of the recently specified secondary search within the document before the actual insertion point.

Note: Works with the secondary search mechanism.

# Favourites

This menu is designed to remember chosen documents, so they could be accessible more easier at any time.

Click on an added file name to open it. TED Notepad may ask about to save the current document before opening the new one.

Note: If you do not use this feature at all, it will not cost any extra resources.

Fakt... ziadne alokacie, ziadna extra pamat... :))

#### Add this File

Adds a file name of the current document to the Favourites menu.

#### Manage List...

Opens the Settings dialog, where the Favourites can be deleted and reordered.

# Clipboards menu

This menu provides an access to Extended Clipboards. These nine clipboards can be used within TED Notepad the same way, as the standard clipboard of Windows can be.

The content of these Extended Clipboards is usually being saved between sessions, therefore it persists even through computer restarts. Extended Clipboards can be easily pre-configured and then used later to quikly paste frequent phrases and/or code snippets.

Press Alt key with a digit [1..9] to copy the selection into one of the Extended Clipboards. Press Ctrl key with the same digit to paste the content from the Extended Clipboard back to the document.

Note: The content of these Extended Clipboards is saved with other settings, when TED Notepad quits, but it is not shared with other applications. Therefore, even with two instances of TED Notepad running concurrently, they each opperate with a different set of these Extended Clipboards.

Note: If saving of the content of the Extended Clipboards is turned off in settings; or the /ns command line parameter is used; or the Exit without saving! is used; content of Extended Clipboards is not saved at all, and will not persist the session. See chapters Command line parameters and File menu.

#### Show Clipboards (Ctrl+0)

Shows the Clipboards dialog, where the content of the Extended Clipboards is displayed. Use one of Paste from buttons directly from this dialog to paste the content of any chosen Extended Clipboard to the document.

#### Clear ALL Clipboards

Erases the content of all Extended Clipboards.

#### Copy to [1..9] Clipboard (Alt+[1..9])

Copies the selection into the [1..9] Extended Clipboard.

#### Paste from [1..9] Clipboard (Ctrl+[1..9])

Pastes the content of the [1..9] Extended Clipboard to the actual insertion point or replaces the selection, if any.

# Options menu

#### Show Status Bar

Shows or hides the Status Bar, which resides at the bottom of the main window.

The Status Bar indicates:

- the actual insertion point (i.e. cursor position);
- type of encoding, which the document is to be saved in (i.e. Unicode, ANSI or UTF-8);
- type of newlines that are to be used upon saving (i.e. Win, UNIX or Mac);
- and whether any modifications to the document have been made after the last Save operation.

Note: Some later testing versions of TED Notepad may use the Status Bar also to display some other info.

Note: Using the Status Bar when very large files are opened may significantly slow down the performance. If you load a lot of data and the movement and editing becomes too slow, try turning the Status Bar off.

#### Show Margin Bar

Shows or hides the Margin Bar, which is a vertical line indicating a text margin. However, it does not affect the way the text is being automatically word wrapped. It is only supposed to help with manual word wrapping or other specific formatting. It is a better way than using the right edge of the window.

The position of the Margin Bar can be adjusted any time by clicking on the line and dragging it.

Note: The position of the Margin Bar does not change upon any scrolling, even the horizontal one.

#### Stay on Top (Ctrl+T)

If checked, TED Notepad stays in front of other applications even if not active.

Note: If more than one application is in a such a stay on top mode on the desktop, their order on the screen depends on the System. There is no way to ensure, that any particular one will be the topmost of them.

#### Word Wrap (Ctrl+W)

If checked, the every line of the document is wrapped to fit the width of the window. Wrapping the text enables user to see all the text on the line, but it does not affect the way the text appears when it is printed or saved to a file.

#### Fixed-width Font (F8)

If checked, a fixed-width font is used to display the text of the current document. Otherwise, a proportional font is used.

Both these fonts may be changed and managed in the Settings dialog. See chapter General page of the Settings dialog.

#### Settings... (Alt+Enter)

Shows the Settings dialog which is described in the chapter Settings dialog.

# View scrolling

TED Notepad provides a variety of scrolling hotkeys, all derived from standard movement keys. To start scrolling, just hold down the Alt key and then use common movement keys:

- Alt+Arrows to scroll only a little,
- Alt+Shift+Arrows to scroll by larger steps,
- Alt+Page Up and Alt+Page Down to scroll by entire pages,
- Alt+Home and Alt+End to scroll to the beginning or to the end of the document
- and finally Alt+Insert to scroll back to the actual position of the caret, or to the current selection, if any.

# Drag & Drop

A file can also be opened by draging it from the Windows Explorer and dropping onto TED Notepad window. The document is loaded in the same way as if it was chosen in the Open dialog.

If multiple files are dropped, only the first one will be opened as described above. However, TED Notepad will ask, whether to load all other files too. If so, all files will be joinded into one document.

Note, that title of the document after such a join will remain equal to the document from the first file. The document itself will become modified as if the other files were typed in manually and when it is saved, all the text from all of the joined files will be written to the first file.

# .LOG extension

This feature was implemented as a demand for the capability of the original Windows Notepad: a log appending feature.

To append a log to a document each time it is opened, type the .LOG extension, on the first line of the document. It must begin at the very left margin. Also make sure to use all uppercase letters and to include the period.

When a document is loaded and this extension is found at its beginning, an actual time/date stamp will be appended to the document using the Time/Date tool.

Na takuto divnu featuru by to chcelo hadam i poriadnu davku kofoly, hm? :-)

# Command line parameters

TedNPad.exe [ /lxx | /cxx | /sxx,yy | /a ] [ /p ] [ /nl ] [ /ns ] [drive:][path]filename

Note: All parameters must precede the filename and be delimited with at least one white-space to work properly. There must be no white-space between a parameter and its value, if any. Some of the parameters are exclusive and should not be used together, or the result may be undefined otherwise and may change from version to version.

#### /lxx Go to Line

After the file is loaded, automatically moves the caret to the beginning of the line xx. If there are not so many lines, the caret remains at the beginning of the document.

This parameter excludes /s and /a parameters.

#### /cxx Go to Char

After the file is loaded, automatically moves the caret to the character xx. If there are not so many characters, the caret is moved to the end of the document.

This parameter excludes /s and /a parameters.

Use this parameter along with the /l parameter to jump to a specific column on a specific line. If the chosen line is too short, the caret is placed respectively somewhere beyond it. In other words, when used in conjuction with /l parameter, the /c parameter behaves relatively to the line from the /l parameter.

Note: The caret is moved only after all the newline conversions are already done. If a Unix-type file is loaded and automatically identified, each newline is converted into two characters (i.e. CR/LF). Any given /c parameter should be specified likewise.

RE clone specific: There is a difference in counting newlines. See section RichEdit clone.

#### /sxx,yy Set Selection

After the file is loaded, automatically sets the selection from character number xx to character number yy. If there are not so many characters, the selection is shortened.

This parameter excludes /l, /c and /a parameters.

RE clone specific: There is a difference in counting newlines. See section RichEdit clone.

#### /a Select All

Automatically selects all text after the file is loaded.

This parameter excludes /l, /c and /s parameters.

#### /p Print

Prints the document after the file is loaded, then exits automatically.

#### /nl NoLoad Settings

Simply skips any loading of any settings/options/data from the Registry or from the Portable INI file. Can be used to quicken the application start-up or for any kind of troubleshooting.

#### /ns NoSave Settings

Simply skips any saving of any settings/options/data into the Registry or into the Portable INI file. Can be used to quicken the termination of the application or for any kind of troubleshooting.

Note, that even the Save checked settings button in the Settings dialog will not work. See section Settings page of the Settings dialog.

#### /dxx Do Command

(temporary parameter, officially unpublished)

This parameter can be used to auto-invoke an xx action in TED Notepad directly, after the application starts up and loads the file from the command line.

Caution: This parameter is a long-shot preparation for some macro support. Action numbers are not published by now and may be modified silently from time to time. They shall be published in the future. The behavior of this parameter may be modified silently from time to time until published as well.

# Portable INI file

TED Notepad is able to store its settings also portably in an INI file, so it can be easilly moved from one computer to another on a USB flash disk or a Floppy disk, carrying its settings along.

The INI file must be placed in the same directory, where the executable file is. It must be named TedNPad.ini (the name is usually case insensitive).

When TED Notepad is starting, it searches for that INI file. When successful, it loads its settings from the INI file. Then, upon exit, all settings are always saved back to the INI file, even if it is deleted or modified in the meantime.

When the TedNPad.ini file is not found, TED Notepad loads its settings from the user registry.

While saving the settings (e.g. upon exit), TED Notepad searches for the TedNPad.ini file again. If the file is found, it stores the settings into it regardless of whether they were loaded from the registry or from the INI file before. This can be useful to convert your current settings from the registry to the portable INI file.

Note: There is currently no way to convert the settings from the INI file back to the registry. Once TED Notepad finds the TedNPad.ini file, all settings are stored there in that session.

Note: Because the INI file must be stored in the same directory, where the executable is, it is not recommended to install TED Notepad with this portable INI file to a Program files folder or as a default notepad replacement, because end users would be probably completely restricted from writing their settings.

Note: By setting a read-only attribute to the TedNPad.ini file, you will prevent TED Notepad from saving new settings. When you set this attribute on an empty file, you can ensure the default settings forever.

# Tools reference

This chapter describes all tools within the Tools menu of TED Notepad.

##### Table of Contents:

- Case tools
- Newlines tools
- Lines tools
- Replacing tools
- Text tools
- File tools
- Sorting tools
- Reversing tools
- Time/Date tools
- Word Wrap tools
- Text Filters

# Case tools

#### Case Inversion (Ctrl+Shift+I)

Inverts the case of the selected text by changing lower case letters (i.e. a,b,c,...,z) to capitals (i.e. A,B,C,...,Z) and vice versa.

Example:
`When Tim and I to Brisbane went, we met three ladies, cheep to rent. They were three and we were two, so I booked one and Tim-booked-two.`

Result:
wHEN tIM AND i TO bRISBANE WENT, WE MET THREE LADIES, CHEEP TO RENT. tHEY WERE THREE AND WE WERE TWO, SO i BOOKED ONE AND tIM-BOOKED-TWO.

#### All Upper Case (Ctrl+Shift+U)

Converts all lower case letters to capitals in the selection.

Result: (see example above)
WHEN TIM AND I TO BRISBANE WENT, WE MET THREE LADIES, CHEEP TO RENT. THEY WERE THREE AND WE WERE TWO, SO I BOOKED ONE AND TIM-BOOKED-TWO.

#### All Lower Case (Ctrl+Shift+L)

Converts all capitals to lower case letters in the selection.

Result: (see example above)
when tim and i to brisbane went, we met three ladies, cheep to rent. they were three and we were two, so i booked one and tim-booked-two.

#### Word Capitals (Ctrl+Shift+T)

Converts the first letter of every word in the selection to upper case and all other letters to lower case.

Result: (see example above)
When Tim And I To Brisbane Went, We Met Three Ladies, Cheep To Rent. They Were Three And We Were Two, So I Booked One And Tim-Booked-Two.

#### Up to Sentence Case (Ctrl+Shift+S)

Converts the first letter of every sentence in the selection to upper case.

Note: Up to Sentence Case does not convert any letters to lower case.

Example:
`Alice? who the f... is Alice?`

Result:
Alice? Who the f... Is Alice?

Tip: If you want to convert all other letters to lower case, you have to use the All Lower Case tool (hotkey Ctrl+Shift+L) in order to have them all in lower case and then this Up to Sentence Case tool.

# Newlines tools

#### Convert From UNIX (Alt+Ctrl+H)

Converts UNIX-type newlines from the selection to Windows friendly newlines.

Note: No checks are made whether the newlines are really UNIX-type. This tool just adds a CR character before each LF character.

#### Convert To UNIX (Alt+Ctrl+U)

Converts Windows friendly newlines from the selection to UNIX-type newlines.

Note: No checks are made whether the newlines are really Windows friendly. This tool just strips CR character from each CR/LF sequence. A single CR character with no LF following is not stripped.

#### Convert From Mac (Alt+Ctrl+J)

Converts Mac-type newlines from the selection to Windows friendly newlines.

Note: No checks are made whether the newlines are really Mac-type. This tool just adds a LF character after each CR character.

#### Convert To Mac (Alt+Ctrl+K)

Converts Windows friendly newlines from the selection to Mac-type newlines.

Note: No checks are made whether the newlines are really Windows friendly. This tool just strips LF character from each CR/LF sequence. A single LF character with no CR preceeding is not stripped.

# Lines tools

#### Indent (Ctrl+Tab)

Indents each line of the selection with a Tab character.

Note: The selection always persists in this tool.

#### Unindent (Ctrl+Shift+Tab)

Removes the first character on each line of the selection, if the character is a white-space.

#### Quote Mail (Ctrl+Q)

Indents (quotes) each line of the selection with a >_ phrase exactly the same way as a standard mail client would do upon replying to a message.

Note: The selection always persists in this tool.

#### Quote/Indent... (Alt+Ctrl+Q)

Asks for a Quote phrase to work with and then indents (quotes) the selection with the specified phrase at the beginning of each line. Optionally, only non-empty lines can be quoted.

Example: (an e-mail received from a user)
----- Original Message ----- `Great notepad! Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ of course. But that's what people are looking for these days.`

Result, using Quote: >_ and Only non-empty lines checked:
----- Original Message ----- > Great notepad! > Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........ > of course. But that's what people are looking for these days.

Tip: If you are writting a list (or a table) in an HTML document, you may write all the lines of such a list first without having to bother with all the HTML tags. Then select all the lines, hit this Indent/Quote Selection... tool (hotkey Alt+Ctrl+Q) and enter phrase like <LI> as the Quote phrase.

#### Unquote (Ctrl+Shift+Q)

Takes the very first character of the selection as a quoting character. Then removes the first character on each line of the selection, if the character is the quoting character.

Note: It is very similar to the Unindent Selection tool, but it is not space-oriented only.

#### Shift Left (Alt+Ctrl+Shift+Q)

Removes the first character from each line of the selection, no matter what it is.

Note: Tabs are treated as single characters.

#### Tabify (Alt+Ctrl+O)

Tabifies the indentation of the selection by replacing leading Spaces with Tabs on each line. While replacing, the Spaces are being grouped together according to the Tab Size setting. Each set of Spaces is then replaced by a Tab.

If Tabs and Spaces are mixed together on the beginning of a line, the total white-space outcome is calculated first and then Tabs and then Spaces are used to fill the occupied white space. Tabs always precede Spaces and Spaces are used only, when a Tab would extend the original white-space outcome.

Note: Using this tool sould not generate any visible changes, when using a fixed-width fonts. However, some proportional fonts do not use the average character width for Spaces, thus a Tab may seem to be longer than a set of Spaces.

Note: This tool does not modify other than leading Spaces.

#### Untabify (Ctrl+Shift+O)

Untabifies the indentation of the selection by replacing leading Tabs with Spaces on each line. While replacing, the Tabs are being replaced by multiple Spaces according to the Tab Size setting.

If Tabs and Spaces are mixed together on the beginning of a line, the total white-space outcome is calculated first and then Spaces are used to fill the occupied white space.

Note: Using this tool sould not generate any visible changes, when using a fixed-width fonts. However, some proportional fonts do not use the average character width for Spaces, thus a Tab may seem to be longer than a set of Spaces.

Note: This tool does not modify other characters than leading Tabs.

#### Close... (Alt+Ctrl+C)

Asks for a Close with phrase to work with and then closes each line of the selection with the specified phrase. Optionally, only non-empty lines can be closed.

Result, using Close with: <br>; see example above:
----- Original Message ----- Great notepad!<br> <br> Tabs, you need tabs for multiple documents. Cosmetic, supeficial,........<br> of course. But that's what people are looking for these days.<br>

Tip: As the example above shows, if you are writting an HTML document, you may write all the text of such a document first without having to bother with all the HTML tags. Then select the text, hit this Close Lines... tool (hotkey Alt+Ctrl+C) and enter whatever phrase is needed after each line (e.g. a <bt> tag).

Tip: According to the tips and examples above, you may simply combine the Indent/Quote Selection... tool with Close Lines... tool in order to write paragraphs in an HTML document without having to bother with <p> tags at first. Write all the paragraphs first, each one on a single line (use word wrapping (hotkey Ctrl+W) in order to see entire paragraphs wrapped into several lines). Then select all the paragraphs and use both Indent/Quote Selection... and Close Lines... tools in order to add the <p> and </p> tags.

#### Trim Spaces (Ctrl+Shift+C)

Removes all white-spaces from the end of each line of the selection.

#### Columns, Numbers... (Alt+Ctrl+Y)

Cuts portions from each line and then gnerates new lines according to the given Output mask. The mask may contain any text, and may also include these special variables:

- %0 - returns the entire original line.
- %1-%9 - return the columns cut according to rules specified in the corresponding tab.
- %d - returns a decimal number from the Counter. You may specify the Start and the Step.
- %x - returns a lower case hexadecimal number from the Counter.
- %X - returns an upper case hexadecimal number from the Counter.
- %b - returns a binary number from the Counter.
- %o - returns an octal number from the Counter.
- %n - returns a simple newline.

All these veriables might be furthermore qualified with an aligning specifier:

- < - aligns the entire column to the left, using spaces to fill the shorter lines from right.
- > - aligns the entire column to the right, using spaces to fill the shorter lines from left.
- + - aligns the entire column to the right, using 0 to fill the shorter lines from left.
- ^ - aligns the entire column to the center, using spaces to fill the shorter lines from both sides.

Optionally, you may choose to Modify non-empty lines only, if you need to keep the empty lines intact.

Example of an Output mask. This mask will cut the first column from each line and place it in the results after a decimal number, colon and a space. The numbers will be aligned to the right by zeroes, so that they all have the same number of digits:

%+d, %1

#### Unique (Alt+Ctrl+X)

Searches the selection for equal lines and removes all duplicates. The order of the uniqued lines remains unchanged and from each two equal lines, the second one is removed.

Note: Use Shift+Alt+Ctrl+X hotkey in order to ignore case when matching duplicates.

Example:
`how much wood would a woodchuck chuck if a woodchuck could chuck wood`

Result:
how much wood would a woodchuck chuck if could

Tip: If you need, for example, a complete word listing of a document, use the Extended Replace tool in order to replace all the spaces, commas, dots, etc. by new lines. Then use this Unique Lines tool, which will give you the complete listing of all words.

#### Find duplicates... (Ctrl+Shift+X)

Works the same way as the Unique Lines tool does, but allows more options affecting the behavior of the tool:

- All lines - identical to the behavior of the Unique Lines tool.
- Only unique lines - only lines that does not have duplicates are included in the result.
- Only duplicated lines - only lines that have at least one duplicate are included in the result.

Result of Only duplicated lines; see example above:
wood a woodchuck chuck

The Count duplicates option adds to the result the actual numbers of equal lines. Each resulting line will contain a number of its duplicates, written in brackets before the line.

Result of Count duplicates; see example above:
(1) how much (2) wood (1) would (2) a woodchuck (2) chuck (1) if (1) could

Additionally, Ignore case option may be specified to ignore case when matching duplicates. Leave empty lines option may be specified to spare empty lines from being uniqued to prevent joining of separate paragraphs.

#### Remove Empty (Ctrl+Shift+V)

Removes all empty lines from the selection. Other lines remain untouched.

# Replacing tools

#### Translate Characters... (Alt+Ctrl+T)

Asks for Find what and Translate to strings. Then translates in the selection all occurrences of each character from Find what to the corresponding character from Translate to. If Translate to string is shorter than Find what, the extra characters from Find what are being deleted from the selection instead of translating.

Optionally, it can Delete all other characters that are not included in Find what string. Note: Even if Delete all other characters is turned on, if Translate to string is shorter than Find what string, the extra characters are deleted too.

Note: This tool is always case sensitive. Convert the text to lower case before this tool to gain case insensitive behaviour.

Example:
`TED Notepad for Windows`

Result: (using Find what: EDNopadfWinws and Translate to: enmeorspparc.)
Ten meteors per parsec.

#### Extended Replace... (Alt+Ctrl+R)

Searches for all occurrences of a specified Find what phrase within the selection and replaces them with Replace with phrase.

Use Ignore case option to ignore case during the search. Whole words option allows to search for phrases strictly delimited by non-word characters.

Note: Newlines and Tab characters can be used in Find what and Replace with phrases freely.

Note: This tool is prefered to standard Find/Replace All mechanism in many cases. The reasons are, that its search is done in more complex way and the replacing routine works much more faster and uses much less resources. Furthermore, the selection ensures, that the replacing is done only in the desired part of the text. And finally, the Undo feature undoes all replacements together, instead of only the last one. The Find/Replace All mechanism behaves the very same way as in the original Windows Notepad does, but that makes it unusable on large files with many occurrences.

Note: All UNICODE characters are supported on UNICODE versions.

# Text tools

#### Enclose Selection (Alt+Ctrl+E)

Asks for two phrases and then encloses the selection with them. The first one (Before) is placed before the selection, the second one (After) is placed after the selection.

If there is nothing selected while using this tool, then the caret is placed between the two inserted strings.

Example:
TED Notepad for Windows is a `freeware` text editor, ...

Result, using Before: <b> and After: </b>:
TED Notepad for Windows is a <b>freeware</b> text editor, ...

Tip: If you have written an HTML document and you need to make several phrases to be bold, e.g. each occurrence of a specific word, then use Find... (hotkey Ctrl+F) to select first such word, hit Enclose Selection (hotkey Alt+Ctrl+E), enter phrases Before: <b> and After: </b> and hit Enclose button. The selected word will be enclosed with the bolding tags. Then, use Find Next (hotkey F3) to select all the other occurrences, one by one. Each time hit Last Tool (hotkey Ctrl+L), in order to use Enclose Selection on each of them.

Tip: Note that if you need to enclose entire subsequent lines, it is better to select all of them at once and use Indent/Quote Selection... tool (hotkey Alt+Ctrl+Q) and then Close Lines... tool (hotkey Alt+Ctrl+C) instead of selecting each one of them separately and performing the Enclose Selection again and again.

#### XML/HTML Tag (Ctrl+Shift+H)

Asks for a Tag name and for its Attributes. Then encloses the selection with generated XML/HTML tag. If no selection is found, the caret is placed between the two generated strings: the starting tag and the ending tag.

The tag may be Empty which means that only the starting tag is generated with slash at its end according to XML specification (e.g. <br />). In this case, if a selection is found, the tag is placed at the end of the selection.

Note: It is usually profitable to turn on the Persistent selections in Tools setting in the Settings dialog. See chapter General page of the Settings dialog.

Example:
There is no place like `127.0.0.1`!

Result, using Tag name: a and Attributes: href="http://127.0.0.1/":
There is no place like <a href="http://127.0.0.1/">127.0.0.1</a>!

#### Compare... (Alt+Ctrl+M)

Shows the Compare dialog, where two strings can be inserted and compared, optionally ignoring case.

If the two compared strings are not equal, the difference is marked by a selection within the first string and a warning is given. Note: If the strings are equal only up to the length of the first one, the caret is placed to the end of the first one. Nothing is selected.

Note: If the selection is not empty, it is auto-inserted to the edit box of the first string. The same font is used within the Compare dialog, as is specified for the main window.

#### Statistics... (F9)

Shows the Statistics dialog with a lot of calculated info about the document and the selection. Description of some terms used in the Statistics dialog can be found in the section Appendix.

Note: The calculated Crc32 value is informative only. It may differ from UNICODE to Non-UNICODE versions and from LE to RE clones.

# File tools

#### Insert Title (F6)

Inserts a file title of the document to the actual insertion point, exactly as it is shown in the main window caption.

#### Insert Filename (Ctrl+F6)

Inserts a full path and a file name of the actual document to the actual insertion point.

#### Include File (Alt+Ctrl+I)

Asks for a file and then pastes the content of the file to the current caret position or replaces the selection, if any.

Note: Yet, this tool can not load multiple files at once. The only way, how to load and join multiple files at once, is to use the Drag & Drop feature, described in the section Drag & Drop. I hope, that this posibility, to include and join multiple files also with Include from File, will be added in the future.

#### Exclude to File (Alt+Ctrl+D)

Asks for a file and then cuts the selection to the specified file.

# Sorting tools

#### Sort Ascending (Alt+Ctrl+A)

Simply sorts lines of the selecion in ascending order, comparing the entire lines as simple text. Does not ignore case or any characters.

#### Sort Descending (Alt+Ctrl+Z)

Simply sorts lines of the selecion in descending order, comparing the entire lines as simple text. Does not ignore case or any characters.

#### Sort... (Alt+Ctrl+S)

Shows Sort Selection dialog and asks for sorting keys. Then sorts lines of the selection according to the given keys.

When lines of the selection are being sorted, they are compared against each other and the sorting keys are supposed to specify, how to do that. You can use up to three such keys, named At first..., Then... and Finally.... If two lines are equal acording to the 1st key, then the 2nd key is used (and the 3rd key alike).

Note: The sorting keys are used only to sort the lines, e.g. to decide, which one goes first and which one will be the second one. The lines are not being modified during the sorting; only the order of them.

Each sorting key may specify:

Whether to sort by that key, or not.
  There is usually no need to define more than one key, therefore the 2nd and 3rd keys are disabled by default.
  Note: You can not sort by the 3rd key, if you are not sorting by the 2nd key as well.

Whether to use an entire line or only a specific column for the comparisons.
  When lines are being compared, only this column is taken into account, disregarding any other line content.
  Note: The column is being allocated for each line separately, therefore the total number of columns on a line may vary from line to line. If you run out of columns on a line, you get an empty column for that line.

  None, one or more column delimiters may be specified.
    Each delimiting character is treated independently and are all case sensitive. You can, for example, dilimit columns by Spaces and also by Tabs. Then each Space or Tab (whatever comes first) starts a new column.
    Example: A line HELLO WORLD would be:
    - divided into two columns (HELLO and WORLD), if delimited by a Space character;
    - divided into four columns (H, LL, W and RLD), if delimited by a set of EO characters;
    - divided into four columns (HE, {empty}, O WOR and D), if delimited by a single L character;
    - and divided into only one column (HELLO WORLD), if delimited by an X character or if delimited by no characters.

  Whether to treat a sequence of delimiters as a single delimiter.
    Tells that any sequence of a single delimiter is to be treated as a single delimiter. For example, in a string with several consecutive Spaces, all sequences of Spaces will be grouped together first. Only then the line will be divided into columns.
    Note: A sequence of multiple delimiters is not treated as a single delimiter. If a Space is followed by a Tab, both Space and Tab are delimiters, they will delimit three columns instead of two, leaving the second column empty.
    Example: If this option is checked, a line HELLO WORLD would be divided into only three columns (HE, O WOR and D), if delimited by a single L character, exactly as if there was only one single L in the word HELLO.

  Whether to count columns backwards.
    If this option is checked, then a column 1 from left is the last column, column 2 from the left is the penultimate column, etc. Note again, that columns are set for each line separately, therefore total number of columns on a line may vary from line to line. If you run out of columns on a line, you get an empty column for that line.

Whether to use only a char range.
  If this option is checked, then only this char range of a chosen column is used when sorting lines. Note, that the columns are calculated first. Only then the char range is cut from the resulting column. If you run out of chars in the column, you get an empty string for that line, even if the line originally continued after the column.

  Whether to count the char range backwards.
    Very similar to count columns backwards above.
    Note, that even if a char range is counted backwards, the comparing of two lines is performed normally, from left to right. If you wish to compare lines backward, try to use the Reverse Lines tool to reverse the lines before and after the sort. For details see chapter Replacing tools.

Sorting Direction: ascending or descending.
  The tool always uses the actual locale settings to decide the order of the lines.

Whether to compare two lines as numbers or as text.
  Note, that number 112 is greater than number 12 if sorted as numbers, but it is smaller if sorted as text.
  Sorting numbers
    While sorting as numbers, all spaces are automatically ignored. TED Notepad is able to sort numbers of any length. The numebers may contain one decimal point and may start with a minus sign.
    The comparison of two numbers is halted, when a first non-allowed character is found. The allowed characters are 0-9, a-z, one decimal point, a minus sign at the beginning and all white-spaces.
    The numbers may be in decimal, binary, hexadecimal or any other scale. The only important thing is, that both compared numbers must be in the same scale. This also means, that you cannot compare a line like 13 pigs against a line like 13 elephants, because the letters are valid numerals. In this case, 13 pigs are greater that 13 elephants.
      Actually, 1 woman is always more than 1 man no matter what... On the other hand, 1$ woman and 1$ man are equal when compared as numbers.

Whether to ignore case when comparing two lines.
  The case is always ignored when sorting as numbers.

Whether to ignore specific characters, when comparing two lines.
  If a character is to be ignored, it is completely stripped from both lines when they are being compared.
  Note: While comparing as lines, you can not specify, which characters are to be ignored.
  Note: The resulting lines are not modified, and the ignored characters are not stripped from the results.

# Reversing tools

#### Text (Ctrl+Shift+J)

Reverses the selection by exchanging its first character with its last character, the second with the penultimate, etc.

Niekedy mam pocit, ze to vysvetlujem jak pre debilov...

Example:
`Dog lived on, devil god.`

Result:
.dog lived ,no devil goD

#### Lines (Ctrl+Shift+K)

Reverses line order of the selection by exchanging the first line with the last line, the second with the penultimate, etc.

Example: (Stupidnejsi priklad som uz asik najst nemohol, co? :-)
`For the 1st time, I nearly came to the door, but chickened out immediately. The 2nd time was better, I rang the doorbell and only then I chickened out. Unfortunately, by the 3rd time, I was caught. Now... ...now I am married.`

Result:
Unfortunately, by the 3rd time, I was caught. Now... ...now I am married. The 2nd time was better, I rang the doorbell and only then I chickened out. For the 1st time, I nearly came to the door, but chickened out immediately,

#### Each Word (Ctrl+Shift+B)

Searches the selection for words and reverses each word separately. The order of the words is not changed and all word delimiters are left untouched.

Example:
`Dog lived on, devil god..`

Result:
goD devil no, lived dog..

#### Each Line (Ctrl+Shift+G)

Reverses each line of the selection by exchanging its first character with its last character, the second with the penultimate, etc.

Example: (Stupidny priklad zo vcera pokracuje...)
`For the 1st time, I nearly came to the door, but chickened out immediately. The 2nd time was better, I rang the doorbell and only then I chickened out. Unfortunately, by the 3rd time, I was caught. Now... ...now I am married.`

Result:
.yletaidemmi tuo denekcihc tub ,rood eht ot emac ylraen I ,emit ts1 eht roF .tuo denekcihc I neht ylno dna llebrood eht gnar I ,retteb saw emit dn2 ehT .deirram ma I won... ...woN .thguac saw I ,emit dr3 eht yb ,yletanutrofnU

#### Words (Ctrl+Shift+Y)

Reverses entire words of the selection. The words themselves remain unreversed, only their order is changed.

Note: Non-word characters are treated as single words.

Example:
`There is no place like 127.0.0.1!`

Result:
!1.0.0.127 like place no is There

#### Words on Line (Ctrl+Shift+M)

Reverses entire words on each line separately. The order of the lines is not changed and the words themselves also remain unreversed and positioned on the original line. Only their order on a given line is changed.

Example:
`There is no place like 127.0.0.1!`

Result:
place no is There !1.0.0.127 like

# Time/Date tools

#### Time/Date (F5)

Inserts current system time and date using the short date format specified in the Local Settings (Control Panel of My Computer).

#### Time/Long Date (Shift+F5)

Inserts current system time and date using the long date format specified in the Local Settings (Control Panel of My Computer).

#### Date/Time (Alt+F5)

Inserts current system date and time using the short date format specified in the Local Settings (Control Panel of My Computer).

#### Long Date/Time (Alt+Shift+F5)

Inserts current system date and time using the long date format specified in the Local Settings (Control Panel of My Computer).

#### Date (Ctrl+F5)

Inserts current system date using the short date format specified in the Local Settings (Control Panel of My Computer).

#### Long Date (Ctrl+Shift+F5)

Inserts current system date using the long date format specified in the Local Settings (Control Panel of My Computer).

# Word Wrap tools

#### Commit Word Wrap (Alt+Ctrl+W)

Commits actual word wrapping in the selection. This tool is enabled only if Word Wrap is enabled. See chapter Options menu.

RE clone specific: This tool is not available in RichEdit clone at all. See chapter RichEdit clone.

#### Unwrap Paragraphs (Ctrl+Shift+W)

Unwraps lines of each paragraphs in the selection by concatenating them into a single line. One Space character is placed between every two concatenated lines.

Note, that if lines were wrapped by Commit Word Wrap tool, this Unwrap Selection tool will not undo that as supposed, just because Unwrap Selection tool needs lines to be divided into paragraphs to leave them separated.

# Text Filters

#### Inspiration

How about a plugin architecture? Something simple - just a list of menu names and programs to run and maybe an indication of whether it should prompt for additional parameters. TED will run the program with those parameters and with the actual selection and then accept the output back into the TED workspace. (--- anonymous user ---)

#### Architecture

Each filter must be defined as a runnable command, consisting of an application file to execute and its parameters. System commands may be executed only through a command interpreter (i.e. cmd.exe, command.com, launch.exe) as described below.

Each filter can define up to 9 variables in the command. Use batch variable syntax (i.e. %1, %2, ..., %9) to define those variables in the command. When the filter is to be used, a dialog will appear to ask for values of the variables. Furthermore, special %F variable can be used to refer to an actual path and file name of the current document. This can be used to run an external viewer (e.g. Internet Explorer or Firefox).

Example:
myapp.exe %1 myapp.exe /a %1 /b /c"%2" myapp.exe /a %1 /b /c"%1" myviewer.exe /a %1 /b "%F"

#### Technology

When a filter is to be executed, a new process is started using the command of that filter. All defined variables are replaced with values. The selection is then given to the stdin1 of the started process. After the process returns, its stdout2 or stderr3 is read, depending on what value the process returned. Finally, the selection is replaced with the output of the process or an error is displayed, containing the returned error code and the content of the stderr3. All inputs/outputs are Non-UNICODE.

If the %F variable is used, the document is automatically saved before the execution of the filter and the %F is replaced by the actual path and file name of the current document. The selection is ignored (neglected), which means, that nothing is written to filter's stdin and no output is awaited from filter's stdout. %F variable can be useful to define an external viewer which does not read the stdin at all but requires a file name to start on.

  1 standard console input
  2 standard console output
  3 standard console error output

#### Requirements

An application defined in filter's command should read the stdin for input text and should output any results to the stdout. If the operation is successful, the application should return zero. Otherwise it should return non-zero value and optionally describe the error to the stderr.

Note: Some languages (like Pascal) does not support stderr at all. Therefore, if a non-zero return code is received and stderr is empty, stdout is expected to contain the error description.

If an application file name ends with an .exe extension, it is not necessary to use it in the command, but it may be necessary otherwise. The command can specify the full path and file name of the application to execute as well as only the file name. In the case of a missing path, system uses the current working directory and system directories when searching for the application.

System commands need to be executed through a command interpreter, as they do not have any file names to be executed. Use standard command interpreters (i.e. cmd.exe on Win NT/2000/XP, command.com on Win 9x/ME) or the launch.exe interpreter, which is included in the installation package and installed with TED Notepad.

Examples:
cmd.exe /c command [parameters] cmd /c dir /b %1 command.com /c command [parameters] command.com /c dir /b %1 launch.exe command [parameters] launch dir /b %1

#### How to create a filter's application?

Very easy! Any programming language that can be compiled to 16-bit/32-bit console application (i.e. PE files with an .exe extension) may be used (like c/c++, pascal, qbasic, ...). Such application should use its stdin for input, its stdout for output and its stderr in the case of failure/error (which are used by default in these languages). It should return zero upon success or non-zero value upon failure. No other requirements/restrictions are specified.

Note: Some languages (like Pascal) do not define any stderr. Therefore, all error messages could also be written to the stdout. When a non-zero error code is returned and no stderr is started, the stdout is supposed to be used instead of the stderr for any error messages to be displayed to the user.

Note: Actually, both stdout and stderr are displayed to the user upon a non-zero error code. This behaviour may change in the future, according to the suggestions of the end users. The stderr is and will be preffered.

Example:
#include <stdio.h> #include <stdlib.h> int main (int argc, char* argv[]) { int lines; char buff[1024]; if (argc < 2) { fprintf (stderr, "Enter the number!"); // outputs to stderr return 1; // ...failure! } lines = atoi (argv[1]); // gets 1st parameter and // converts it to integer if (lines < 1) { fprintf (stderr, "Wrong number!"); // outputs to stderr return 2; // ...failure! } while (lines != 0) { if (EOF == scanf ("%s", buff)) // reads from stdin break; // or breaks on end-of-input printf ("%s\n", buff); // writes to stdout lines = lines - 1; } return 0; // ...success }

Example: (There is no stderr in Pascal, therefore writting errors to stdout too...)
var lines, code: integer; buff: string; begin if ParamCount < 1 then begin writeln ('Enter the number!'); { outputs } halt (1); { ...failure! } end; Val(ParamStr(1), lines, code); { gets 1st param and } { converts it to integer } if lines < 1 then begin writeln ('Wrong number!'); { outputs } halt (2); { ...failure! } end; while lines <> 0 do begin readln (buff); { reads a line from stdin } if eof then break; writeln (buff); { writes to stdout } lines:= lines - 1; end; end. { ...autosuccess }

# Settings dialog

This chapter describes all fileds within the Settings dialog of TED Notepad.

##### Table of Contents:

- General page
- File page
- RE page
- Favourites page
- Filters page
- Settings page

# General page

#### Tab Size

The Tab Size value specifies the size of each tab stop. These tab stops determine, how much each Tab character will shift the following text.

#### Left Margin

The Left Margin value specifies the size of the left selection margin. This selection margin is a space between the text of the document and a border of the main window. Here a user can drag the mouse cursor to quickly select entire lines.

#### Text Limit

The Text Limit value specifies the maximum allowed length of text of a document. If this value is to be breached, text may be truncated and a warning will be given. Use this limit in order to create a top limit for your documents. If no such limit is required, leave zero in this field.

Versions note: Prior to version 4.5.2, this value could be altered any time in order to be able to edit a document of whatever size, but a specific positive value must have always been chosen. Version 4.5.2 allows to leave this field with zero value for no actual limit.

#### Persistent selection in Tools

The Persistent selection in Tools setting specifies whether the selection should outlast all used tools. If checked, the selection will be updated to re-cover the results of any used tool. Otherwise, the selection will be discarded and the caret will be placed at the end of such results (exactly as if the results of that tool were pasted to the document using a clipboard).

Note: For some tools (e.g. Indent selection with Tabs or Quote Mail) the selection always persits, because these tools are ment to be used several times in sequence on the same selection.

Tip: Such a setting may become useful especially, when you need to perform several tools in sequence on the same text. Imagine that you need to use Unique Lines tool and then additional Sort on the uniqued lines. When this setting is enabled, the selection will automatically cover the results of the first tool, thus you may use the second tool without need to re-select the text.

#### Auto-indent text

The Auto-indent text setting specifies, whether an auto-indentation mode is to be used. When turned on, each time a new line is being started (using the Enter key), Smart Return feature (hotkey Ctrl+Enter) is used instead. The Smart Return starts a new line as usual, but also copies all initial white-spaces from the previous line to the new line to reach the current text indentation. See chapter Edit menu for details.

#### Insert Spaces instead of Tab

The Insert Spaces instead of Tab setting specifies, whether to use a Tab character when a Tab key is pressed, or whether to insert Spaces instead. The number of Spaces inserted depends on the actual position of the caret on the line and also on the Tab Size setting.

Note: While using a fixed-width font, the resulting white space of inserted Spaces should be the same, as if a real Tab was inserted. This, however, does not always work with proportional fonts. In proportional fonts, size of a Space character often differ from a base character width. Therefore, there may be a difference between a real Tab size and a spaced Tab size. This feature is primarily meant for fixed-width fonts only.

#### Include underscores within words

The Include underscores within words setting specifies whether an Underscore character should be included within the definition of the word letters. This definition is used when working with words, like Select Word or Complete Word features do.

Note: Other characters, those that are not included within the word letters are furthermore divided into two groups: white-spaces and word delimiters. All word-oriented features of TED Notepad (e.g. Select Word) usually treat all white-spaces as one delimiting character. In other words, Select Word selects either a word or all consecutive white-spaces or a single word delimiter otherwise.

#### Line numbers unwrapped

The Line numbers from unwrapped lines setting specifies whether the lines of a document are to be counted according to the actual word wrapping or not. Turn this setting on to count the lines unwrapped, even while they are being word wrapped.

The number of the actual line is displayed in the Status Bar and may be used, for example, in the Go to Line feature.

Warning: Re-calculating of unwrapped lines is not a well-supported operation by the standard Windows edit box. It may noticeably slow down the system performance, when used with longer documents! With a very long document, the application may even stop responding. It may take a long time then to open the Settings dialog to turn this setting off. Use this setting with caution.

#### Complete Word dialog sorted

The Complete Word dialog sorted setting specifies whether the Complete Word dialog items are to be sorted alphabetically, or shown according to their preceding order in the document. See chapter Edit menu for more details about the Complete Word feature.

#### Exit by Esc

The Exit by Esc setting enables or disables the Esc and Shift+Esc hotkeys.

#### Full path in caption

The Full path in caption setting enables to display the full document path (including drive letter and directory path) in the caption of the main window, instead of the simple document name.

#### Recently opened files

The Recently opened files setting specifies whether the Recent Files menu is to be active. The Recently opened files are always maintained, but they are saved upon Exit only when this setting is turned on.

Note: To save Recent Files succesfully, no /ns command line parameter, nor the Exit without saving! may take their place. See chapters Command line parameters and File menu.

##### Empty the Recent files menu

The Empty button below the Recently opened files empties the list of the Recently opened files.

#### Fixed-width Font, Proportional Font

The Fixed-width Font specifies whether the default system fixed-width font is to be used as a fixed-width font or a custom user's font. Use the Primary font button to choose this custom user's font.

The Proportional Font specifies whether a default system font is to be used as a proportional font or a custom user's font. Use the Secondary font button to choose this custom user's font.

# File page

#### Default encoding

The Default encoding specifies a default file encoding that should be used for new documents. Supported encodings are ANSI, both Unicodes and UTF-8.

Note: See chapter Managing documents for more informations about these file encodings, their usage, advantages and also their pitfalls.

#### Default newlines

The UNIX/Mac support specifies, whether the transparent UNIX/Mac newlines conversion support is to be available. See chapter Managing documents for more details about transparent newlines conversions.

The Windows, Unix and Mac fields can be used to specify the default newlines to be used for new files.

#### Default file type

The Default file type setting specifies, what file extension is to be used by the Save As dialog, if no extension is specified explicitly. The default extension may not exceed 4 characters.

The default extension for plain-text documents is usually txt, but users may choose to override this and use another value. E.g. Use html, if you create more HTML documents than simple text files.

#### Default path

The Default path defines a relative or absolute path, that is to be used as the starting point in the Open/Save dialogs. When an absolute path is specified, it is used unchanged in all cases.

When no path is specified as default path, the current working directory is used, if it contains files, which satisfy the Filter strings below. Otherwise, the personal files directory of the current user is used.

When a relative path is specified (e.g. . or \docs), it always refers to the current working directory. Note: The working directory is usually a directory, where TED Notepad is started from. Then this working directory changes with every Open/Save dialogs operation.

Tip: A useful example for portable usage is a simple back-slash (\), which will make the Open/Save dialogs start in the root directory of the drive, where you launched the application. This can be used to twist your USB drive, when moving TED Notepad on the USB stick drive from one computer to another.

#### Filter strings

The Filter strings defines filters, that are to be used in the Open/Save dialogs as file filters. They appear in a combo-box, usually bellow the file name box. Such a filter consists of two strings separated by a Pipe character.

The first string in a filter is a name to be displayed that describes the filter (e.g. Text Files). The second one specifies the filtering pattern (e.g. *.txt). Therefore a filter for text files would look like this: Text Files|*.txt or maybe even like this: Text Files (*.txt)|*.txt.

To specify multiple filtering patterns for a single filter, use a semicolon to separate the patterns (e.g. *.txt;*.doc;*.bak). A filtering pattern can be a combination of valid filename characters and an asterisk wildcard character. Do not include spaces in the pattern string.

Several filters are to be delimited also by a Pipe character. Therefore this Filter strings value should eventually consist of pairs of strings delimited by Pipes. Each pair defines one filter: a name and its filtering pattern.

#### Suggest first line as new file name

The Suggest first line as new file name option specifies, whether the text from the first line of the document is to be suggested in the Save As dialog as a new file name instead of the default Untitled. Note: When there is no text on the first line, the Untitled is used regardless of this option.

#### Create backup files

The Create backup files option specifies, whether to create backup files by copying the previous version of the original file upon each save operation. The backup file name is created by appending a .~ to the original file name.

#### Save recovery every 5 mins

The Save recovery every 5 mins option specifies, whether to auto-save the current file every 5 minutes into a recovery file. The recovery file name is created by appending a .$ to the original file name. The auto-save operation is performed on background and occurs only, when there are unsaved modifications made to the document.

Note: The recovery file is deleted after a successful Save operation; or upon closing the document by a user request (e.g. by opening a new file or closing the editor window).

#### Force Read-only files

The Force Read-only files option specifies, whether files with read-only attribute can be written to. By using this option, you override the system default behaviour, which prevents the modification of such files.

Tip: You can save a read-only file also by opening its Properties dialog (hotkey Ctrl+J) and unchecking the read-only attribute. After the saving, you may then choose, whether to set the read-only attribute back.

#### Save without BOM

The Save without BOM option specifies, whether to save UTF-8 and Unicode files without their Byte-Order-Marks (BOM). Use this setting with caution. Always remember, when you turn it on!

Although there might be specific ocasions, where this is useful, it also brings non-trivial complications. A file without a BOM is not recognized correctly by most of the applications. Unicode files may be treated as binary files and in UTF-8 files non-ASCII characters may be misinterpreted.

Tip: See also the Force the default encoding option below, which can be used to load files without BOM.

#### Only one instance of each file

The Only one instance of each file option specifies, whether TED Notepad should check for other instances of the same file already opened. When this option is turned on, each file is cross-checked upon opening, whether it is already opened in another window of TED Notepad. If so, a warning is displayed, asking the user, whether to switch to the already opened window.

#### Check if file is modified outside

The Check if file is modified outside option specifies, whether a watch is to be set for every opened file. When this option is turned on, TED Notepad raises a warning every time the current file is modified by some other application. It asks, whether to Revert the file upon such event.

By reverting, you discard all unsaved modifications and load the new version of the file. The selection will try to persist the loading, placing the actual insertion point to the same location. Also, the actual scrolling should persist unchanged.

#### Keep file name on error

The Keep file name on error option specifies, whether the file name should be kept even after an unsuccessful or unclean loading. Use this setting with caution. Always remember, when you turn it on!

By default, when a file fails to load (because of a read error, or even when the file is binary), the partially loaded data are displayed with a indication, that the file is already modified. Furthermore, to prevent you from accidentaly saving the modified file back without notice, its file name is discarded. Therefore, you need to explicitly specify a file name to save the data to.

By turning this option on, the above precaution is disabled, allowing you to save the incomplete or modified file right back. Note that when loading binary files, special characters are being modified in the process. The file might then become useless.

#### Force the default encoding

The Force the default encoding option specifies, whether to load all files using the default encoding specified above. Use this setting with caution. Always remember, when you turn it on!

By turning this option on, all attempts to examine the file encoding are skipped and the default encoding is assumed. Also, all file data is assumed to be part of the text. In result, even an occasional Byte-Order-Mark (BOM) is treated just as a part of the text. This may become useful, when you know the exact encoding of the loaded file, but the file misses the correct BOM.

Tip: See also the Save without BOM option above, which can be used to save files without BOM.

# RE page

#### Use multi-level Undo/Redo

RE clone specific: The Use multi-level Undo/Redo turns on/off the multi-level Undo/Redo feature. See chapter RichEdit clone.

#### Clear Undo buffer upon Save

RE clone specific: The Clear Undo buffer upon Save specifies whether to forget all multi-level actions upon the Save operation. The last action remains remembered anyway. This option has no effect when Use multi-level Undo/Redo option is turned off. See chapter RichEdit clone.

#### Automatic detection of URLs

RE clone specific: The Automatic detection of URLs specifies whether URLs are to be detected and highlighted in the document. Note: It may be necessary to reload somehow the text of the document after applying of the settings/options to get the autodetection fully working. This is because only loaded or somehow modified text is searched for URLs and each apply of the settings/options may discard all previously found links. See chapter RichEdit clone.

#### Use doubleclick to launch URLs

RE clone specific: The Use doubleclick to launch URLs specifies whether a doubleclick or a single click on an auto-detected URL is required to launch it in a default internet browser. See chapter RichEdit clone.

# Favourites page

See chapter Favourites for any details.

# Filters page

See chapter Text Filters for any details.

# Settings page

This page offers a place to specify, which categories of options and settings are to be saved upon every exit, so they outlast to the next time, TED Notepad is started.

If none of these categories is ever saved, TED Notepad will always be running with the default or preset values. If these categories are saved only once, directly after configuring TED Notepad to your specific needs, TED Notepad will always start with such desired configuration. See below.

Furthermore, if these categories are saved upon every exit, TED Notepad always starts the same way it was closed for the last time. This is the default behavior.

Note, that these settings are not shared between two running instances of TED Notepad. Therefore, if you change the word wrapping in one window, the other one will remain unchanged. That is usually desired. However, if you add a new favourite in one window, it will not be present immediately in the second window. You will have to save the settings of the first window (e.g. by closing it, which will save all the favourites). Then you will have to re-open the second window, to reload the settings.

Note: To store the settings more portably, see chapter Portable INI file.

#### Save settings

The Save settings option specifies whether any options/settings should be saved at all. Saved options/settings are automatically loaded when TED Notepad is runned next time. If this option is not checked, the settings are not saved upon any exit, therefore, they remain the same as they were before.

If you want the settings never to be saved and never to be loaded, uncheck this option the very first time you run TED Notepad and click the Save checked button. From now on no other settings will then be saved anymore as well as they have never been before - nothing to load the next time TED Notepad is started.

Note: The technique above will actually save one setting, saying not to save any other settings. To prevent TED Notepad completely from saving any settings, use /nl and /ns command line parameters. See chapter Command line parameters.

If you want to preset the settings once and then have them all the same every time you start TED Notepad, make the changes and then click the Save checked button. The settings will be saved. Then uncheck this Save settings checkbox and click the Save checked button again. From now on no new settings will ever be saved.

#### Window position

The Window position specifies whether the main window's position is to be saved. If saved, the next time TED Notepad is started, it will appear on the same position as before. Turning this option on is not recommended much. See notes below for details.

Troubleshooting note: If you are using two displays/monitors, you may simply choose to place TED Notepad on the second display. However, when you disconnect one of those displays later and run TED Notepad, its window will be opened on the missing display and will become quite invisible. It may be quite tricky to move it back into viewable area. Therefore, be careful about this setting. A lot of users already get their window lost this way.

Ludia su proste len ludia! A zensky test funguje stopercentne.. Kazdopadne, s touto featurov vzdy boli (a vzdy budu) nejake nepekne problemy: uzivatelom miznu okna priamo pod rukami.... Kam? ;)

#### Window size

The Window size specifies whether the main window's size is to be saved. If saved, the next time TED Notepad is started, its size will be the same as before. Otherwise, it depends on the system, how big the window will be.

#### Basic options

The Basic options category specifies whether basic options from the Options menu are to be saved. These are the switches that are usually touched a lot according to specific types of documents and/or the type of usage. Especially, the Word Wrap option, the Status Bar visibility option, the Stay on Top and the Fixed-width Font options belong to this category.

#### Actual search

The Actual search category specifies whether the searches are to be saved. There are two searches, the primary one with the Find/Replace dialogs and the secondary one.

Note: The Extended Replace tool is not included within this category, although it is also a searching mechanism.

#### Settings

The Settings category specifies whether the settings from the Settings dialog are to be saved. These are the settings that are usually not modified a lot.

Note: This category actually archs over the saving of nearly all the settings in the Settings dialog. However, note, that Favourites and Filters are treated as separate categories.

#### Filters

The Filters category specifies whether the Filters are to be saved. The Filters are saved only when they have been modified.

#### Tools

The Tools category specifies whether phrases and also some options from the dialogs of tools are to be saved.

#### Clipboards

The Clipboards category specifies whether content of the Extended Clipboards is to be saved. See chapter Clipboards menu for more details about the Extended Clipboards.

#### Save checked

The Save checked button saves all current settings according to the check boxes above, exactly as they would be saved upon exit.

Note: This button is disabled, if /ns command line parameter takes place. See chapter Command line parameters for more details.

#### Restore defaults

The Restore defaults button restores all options/settings to their default values as if no options/settings were ever loaded and/or modified. Note, that if you restore all options/settings, but choose not to save them, they will not remain restored next time TED Notepad is launched.

Note: There are two options that may not be restored this way: window position and window size.

# RichEdit clone

There are several differences between standard Light EditBox (LE) and RichEdit (RE) clones of TED Notepad. This table describes only differences affecting their behavior, not their design.

| LE clone | RE clone
--- | --- | ---
Unlimited file size. | Only in Win NT/2000/XP. | All versions of Windows.
Multi-level Undo/Redo. | Not supported. | Supported. Can be turned on/off in Settings. See chapter Settings dialog.
URL Autodetection. | Not supported. | Supported. Can be turned on/off in Settings. See chapter Settings dialog.
Drag & drop editing. | Not supported. | Fully supported.
Insert/overwrite mode. | Not supported. | Fully supported.
Commit Word Wrap tool. | Fully supported. | RichEdit handles the word-wrapping in a very different way than LE does, therefore no Commit Word Wrap is available by now.
Left selection margin. | Fully supported. | Margins are only supported with RichEdit 3.0 and above. Update the RichEdit DLL from the Windows Update site.
Tab Size. | Fully supported. | Tab stops are only supported with RichEdit 3.0 and above. Update the RichEdit DLL from the Windows Update site.
Consuming of resources. | LE clone always tries to use the minimum required resources. Generally, it stays on the same level as the original Windows Notepad. | Loading the RichEdit library consumes more resources, what makes TED Notepad (RE) no real notepad replacement. Furthermore, some operations may be a bit slower in this clone, which is the price for its advantages.
Go To Char, /c and /s command line parameters. | LE uses CR/LF newline sequences, therefore, it takes two characters to pass a line end. | RE does not work with CR/LF newline sequences; only LF characters are used. Therefore, passing each line takes only one character in RE, even if the original file contained CR/LF newline sequences.
Prefference. | LE clone is the default one. The whole project is oriented to support, develop and test this one. RE clone is being derived directly from LE, to please some Win 98 users, so they can use unlimited file size advantage with TED Notepad. It is done by replacing some general APIs or their arguments upon compilation. Most of the tools/features therefore work the same way, but there are small differences (i.e. Commit Word Wrap tool). I am sorry but I have no personal interest to develop special (and often hacking) ways to override these disparities, while RichEdit itself does not help at all.
Older versions. | Older versions of RE clone are not maintaned and/or supported. The reason, why there is usually no RE Final is, that several older RE clones still contain bugs that were fixed only within next versions. While bugs in specific LE branches are being fixed additionally (to support older/simpler versions even after a newer versions are introduced), this is obviously not the case with the RE clone, mainly because of its lower priority and lower base of its final users (and even testers). You are always encouraged to use either the LE clone, which is more tested with backward support, or use the latest RE beta, which is usually more stable than any other previous RE version.

# Hotkeys

This is a complete listing of almost all TED Notepad hotkeys.

Note: This listing does not contain hotkeys implied in the system or added from out-of-borders of TED Notepad.

Note: It also does not contain hotkeys that are usual for all edit boxes in Windows, such as basic movements and selecting.

Moving through text
Ctrl+Up Arrow | Moves the caret up to the previous line regardless to actual word wrapping.
Ctrl+Down Arrow | Moves the caret down to the next line regardless to actual word wrapping.
Ctrl+G | Shows the Go to dialog. Then moves the caret to a line or position specified in the dialog.
Scrolling view (without moving the caret)
Alt+Up | Scrolls one line up.
Alt+Shift+Up | Scrolls five lines up.
Alt+Down | Scrolls one line down.
Alt+Shift+Down | Scrolls five lines down.
Alt+Left | Scrolls three characters left.
Alt+Shift+Left | Scrolls fifteen characters left.
Alt+Right | Scrolls three characters right.
Alt+Shift+Right | Scrolls fifteen characters right.
Alt+Home | Scrolls to the beginning of the document.
Alt+End | Scrolls to the end of the document.
Alt+Page Up | Scrolls one page up.
Alt+Page Down | Scrolls one page down.
Alt+Insert | Scrolls back to the caret position.
Selecting text
Ctrl+A | Selects entire text of the document.
Ctrl+Num* | Selects the entire line, or adds another line into the selection.
Ctrl+D | Selects a word that begins or continues to the right from the caret. If no word is there, selects all white-spaces or a single character otherwise.
Ctrl+Shift+D | Adds next word that begins or continues to the right from the caret (as described above) to the selection.
Managing files
Ctrl+N | Creates a new document.
Ctrl+O | Shows the Open dialog. Then opens a document from a specified file.
Ctrl+S | Saves the actual document to a file.
Ctrl+B | Shows the Save As dialog. Then saves the actual document to a new specified file.
Ctrl+E | Reverts (reloads) the actual document from its file. Discards any unsaved changes.
Ctrl+U | Toggles file format. Supported formats are ANSI, both Unicode and UTF-8.
Ctrl+I | Toggles type of file Newlines. Toggles between Windows, UNIX and Mac types.
Ctrl+P | Shows the Print dialog. Then Prints the actual document.
Ctrl+J | Opens the Properties dialog of a file of the actual document.
Ctrl+M | Minimizes the window of TED Notepad into the System Tray.
Esc | Closes the actual document and exits.
F10 | Saves the actual document and exits.
Shift+Esc | Exits without saving the actual document and/or any settings!
Editing the document
Ctrl+Z | Undoes the last action.
Alt+BkSpace
Ctrl+Y | Redoes the last undone action. (RE clone specific)
Ctrl+Del | Deletes entire word to the left from the caret. If no word is there, deletes all white-spaces or a single character otherwise.
Ctrl+BkSpace | Deletes entire word to the right from the caret. If no word is there, deletes all white-spaces or a single character otherwise.
Alt+Del | Deletes the entire actual line.
Ctrl+Shift+Del | Deletes the rest of the actual line.
Ctrl+Shift+BkSpace | Deletes the actual line from its beginning up to the actual caret posision.
Ctrl+Enter | Auto-indents the text after starting a new line.
Ctrl+Shift+Enter | Copies the text that preceedes the caret from the actual line to a new line.
Alt+Ctrl+Space | Copies a word that is directly above the caret. If the previous line is not long enough, searches further above.
Ctrl+Shift+Space | Copies a word that is directly above the caret, but also on a line that is similar to the actual line. Similarity means that it starts with the same phrase as the actual line.
Ctrl+Space | Shows the Complete Word dialog in order to complete a word that is to the left from the caret.
Searching for specific text
Ctrl+F | Shows the Find... dialog. Then searches for specified phrase in the document.
F3 | Searches for next occurrence of the search phrase in the document.
Ctrl+F3 | Searches for previous occurrence of the search phrase in the document.
Alt+F3 | Searches for the actually selected text in the document.
Alt+Ctrl+F | Defines a new search for the actually selected text in the document, but does not perform the search immediately.
Ctrl+R | Shows the Find/Replace... dialog. Then searches for specified phrase in the document and replaces it with another phrase.
Ctrl+H
Shift+F3 | Searches for next occurrence of the search phrase in the document and extends the selection to cover that occurrence.
Ctrl+Shift+F3 | Searches for previous occurrence of the search phrase in the document and extends the selection to cover that occurrence.
Alt+F2 | Looks for the actually selected text in the document using the Second search.
F2 | Looks for next occurrence of the second search phrase in the document using the Second search.
Ctrl+F2 | Looks for previous occurrence of the second search phrase in the document using the Second search.
Working with clipboars
Ctrl+X | Cuts the selection into the system clipboard.
Shift+Del
Ctrl+C | Copies the selection into the system clipboard.
Ctrl+Insert
Ctrl+V | Pastes content of the system clipboard into the document.
Shift+Insert
Ctrl+K | Swaps content of the selection and the system clipboard, i.e. cuts the selection into the system clipboard and pastes previous content of the system clipboard into the document.
Ctrl+Shift+Insert
Ctrl+0 | Shows a dialog with content of all Extended clipboards.
Alt+[1..9] | Copies the selection into one of the Extended clipboards.
Ctrl+[1..9] | Pastes content of one of the Extended clipboards into the document.
Options
Ctrl+T | Toggles between standard and Stay on top modes.
Ctrl+W | Toggles word wrap mode.
F8 | Toggles between Fixed-width Font and Proportional Font display.
Alt+Enter | Opens the Settings dialog.
Tools
Ctrl+L | Launches recently used tool again with the same parameters and options as they were used before.
Ctrl+Shift+I | Inverts letter case of all characters in the selection.
Ctrl+Shift+U | Converts all characters in the selection to upper case.
Ctrl+Shift+L | Converts all characters in the selection to lower case.
Ctrl+Shift+T | Converts first character of each word in the selection to upper case and all others to lower case.
Ctrl+Shift+S | Converts first character of each sentence in the selection to upper case. Leaves all others unchanged.
Alt+Ctrl+H | Converts all Unix-type newlines in the selection to Windows-native newlines.
Alt+Ctrl+U | Converts all newlines in the selection to Unix-type newlines.
Alt+Ctrl+J | Converts all Mac-type newlines in the selection to Windows-native newlines.
Alt+Ctrl+K | Converts all newlines in the selection to Mac-type newlines.
Ctrl+Tab | Indents all lines of the selection by a Tab character.
Tab
Ctrl+Shift+Tab | Unindents the selection by stripping a leading white-space from each line.
Shift+Tab
Ctrl+Q | Quotes all lines of the selection by a > phrase.
Alt+Ctrl+Q | Shows the Indent/Quote dialog. Then indents/quotes lines of the selection by a specified phrase.
Ctrl+Shift+Q | Unquotes the selection by stripping a leading quoting character from each line of the selection. The quoting character is defined by the first character of the selection.
Alt+Ctrl+Shift+Q | Removes the first character from each line of the selection.
Alt+Ctrl+O | Tabifies the lines of the selection by replacing all leading Spaces with Tabs.
Ctrl+Skift+O | UnTabifies the lines of the selection by replacing all leading Tabs with Spaces.
Alt+Ctrl+C | Shows the Close Lines dialog. Then Closes lines of the selection by a specified phrase.
Ctrl+Shift+C | Trims all Spaces from the end of each line of the selection.
Alt+Ctrl+Y | Shows the Cut Columns, Add Numbers dialog. Then Cuts columns from lines of the selection (and/or adding numbers to them) according to specified parameters and output mask.
Alt+Ctrl+X | Uniques all lines of the selection.
Alt+Ctrl+Shift+X | Uniques all lines of the selection. Ignores case during the process.
Ctrl+Shift+X | Shows the Find Duplicates dialog. Then searches for duplicate lines in the selection.
Ctrl+Shift+V | Removes all empty lines from the selection.
Alt+Ctrl+T | Shows the Translate Characters dialog. Then translates characters in the selection according to specified translation phrases.
Alt+Ctrl+R | Shows the Extended Replace dialog. Then Searches for specified phrase and replaces all its occurrences in the selection.
Alt+Ctrl+E | Shows the Enclose Selection dialog. Then encloses the selection with the specified phrases.
Ctrl+Shift+H | Shows the XML/HTML Tag dialog. Then encloses the selection with the specified tag and its attributes.
Alt+Ctrl+M | Shows the Compare dialog. Then compares two given phrases.
F9 | Shows the extensive Statistics... dialog.
F6 | Insert a title of the actually opened document.
Ctrl+F6 | Inserts an actual path and a file name of the actually opened document.
Alt+Ctrl+I | Shows the Open dialog. Then includes a specified file.
Alt+Ctrl+D | Shows the Save As dialog. Then excludes (cuts) the selection into a specified file.
Alt+Ctrl+A | Sorts all lines of the selection in ascending order.
Alt+Ctrl+Z | Sorts all lines of the selection in descending order.
Alt+Ctrl+S | Shows the Sort... dialog and then sorts all lines of the selection according to specified keys.
Ctrl+Shift+J | Reverses the text of the selection.
Ctrl+Shift+K | Reverses line order in the selection.
Ctrl+Shift+B | Reverses each word in the selection.
Ctrl+Shift+G | Reverses each line of the selection.
Ctrl+Shift+Y | Reverses words of the selection.
Ctrl+Shift+M | Reverses words on each line of the selection.
F5 | Inserts actual time and date.
Shift+F5 | Inserts actual time and date in the long format.
Alt+F5 | Inserts actual date and time.
Alt+Shift+F5 | Inserts actual date in the long format and time.
Ctrl+F5 | Inserts actual date.
Ctrl+Shift+F5 | Inserts actual date in the long format.
Alt+Ctrl+W | Permanently commits actual word wrapping in the selection.
Ctrl+Shift+W | Unwraps the paragraphs in the selection.
Alt+Ctrl+[F1..F12] | Shows the Run Filter dialog. Then Launches one of the Text Filters.
Help menu
F1 | Opens the manual of TED Notepad.
Ctrl+F1 | Opens the On-line manual from the homepage of TED Notepad.

# Frequently Asked Questions

I have turned the save window position and size off, but it still remembers the old position. How can I erase the old position from settings? Is it a bug?

It is not a bug. This behavior allows users to set their window up to the exact place and leave it there forever. Turning the save window position and size option off will not erase any current information about previously saved place. It will not rewrite it if you move the window later. To erase the actual information about saved place, see FAQ about erasing all settings.

I have screwed up my settings completely. Is there any chance to repaire them back to normal?

Yes, you can erase all your settings and then adjust them again. To erase all the settings of all previous versions of TED Notepad, follow this link, download the reg file and run it. Note: This reg file shall clean all settings of all versions of TED Notepad, even your Filters and Favourites! You should back-up them, if you do not want to loose them.

I have opened a binary file in TED Notepad and there are some weird black boxes all around. Later I saved the file back, but then it was no longer working. Why?

It is because TED Notepad is not fully binary compatibile. It can safely open binary files, but it has to modify some undisplayable characters after loading. The original file is not damaged upon opening. However, you should not try to save the modified file back.

I have placed a huge amount of text into an Extended Clipboard and TED Notepad is refusing to save it into Registry. Why?

TED Notepad always verifies the length of each Extended Clipboard in order to prevent a user from saving a full heavy truck of data into the Registry. Doing so may slow down the system, and it is rarely required. Therefore, TED Notepad shows a warning and truncates long data automatically while saving into the Registry. Note: The content of litigant Extended Clipboard itself will not be truncated.

The Open/Save dialogs start in My Documents folder instead of the working folder. Can I fix this? Can I make it work with my USB drive?

The Open/Save dialogs always try to use the path of the currently opened document as the starting place. However, if there is no document opened, there is no path to be used and the dialogs start in the documents location.

You can modify this location by setting a relative or absolute path as the Default path in the Settings dialog. While the usage of an absolute path is quite obvious, using a relative path may result in confusion. For example, if you use a dot (.) as the Default path, then the dialogs will start in the directory, where you started the editor. This may be the location of a text file you double-clicked on in the explorer. Or it may be the working directory of the shortcut you used to launch the application. Other useful example is a simple back-slash (\), which will make the dialogs start in the root of the drive, where you started the application. This can be used to twist your USB drive, when moving from one computer to another.

Can I use relative paths in the Favourites menu?

Yes, and it can be very useful, if you use TED Notepad portably and move it on USB from one computer to another. While moving to different computers usually means the drive letter changes a lot, the relative path on the same drive remains the same. Thus you can use a favourite like \doc\example.txt to access your file, if the application was started from the same drive.

Unfortunatelly, setting a relative path to favourites is not implemented within TED Notepad yet. You will have to set it manually by modifying the TedNPad.ini file (see Portable INI file section for details):

1. First, add files to Favourites menu. This will add them with absolute paths.
2. Exit TED Notepad to save settings.
   - Ensure the Favourites are saved into the TedNPad.ini.
3. Open the TedNPad.ini file in a text editor.
   - You can use TED Notepad, but you will have to be careful.
4. Find a section named [Favs].
5. Update all lines by removing the drive letters and colons (e.g. G:).
   - Note that each back-slash must be written as double-back-slash.
6. Save the file, then exit the editor.
   - Important: If you use TED Notepad for editing the TedNPad.ini file, you have to ensure the file is not just overwritten by the old settings upon exit.
     - This can be done by using the Exit without Saving (Shift+Esc hotkey).
     - Or you can move the file temporarily before the exit, then move it back.
     - Or you can set a read-only attribute to the file temporarily (use Ctrl+J hotkey to open a Properties dialog).
     - Or you can use the /ns command line parameter (see Command line parameters for details).

# Appendix

The meaning of some terms used in this manual is as follows below. Many of them are intuitive; some of them may not be well-known; and some of them are used here, only to describe exact actions of some tools within TED Notepad.</p>

- A white-space is a Space, a Tab or another character that can not be seen but takes place in the document. All other characters, which can be seen, are called graphs.

- An alphanum* is an alpha-numeric character (ie. a, b, ..., z, A, B, ..., Z, 0, 1, ..., 9).

- A capital* is any capital letter (ie. A, B, ..., Z).

- Capitals are letters in upper letter case or simply upper case letters and their oposites are called lower case letters and are in lower letter case or simply in lower case.

- To ignore case is to ignore differences between letter cases like capitals and lower case letters. When ignoring case, letter a is equal to letter A, b equal to B, etc. An antonym of ignore case is to match case and an operation, that matches case is case sensitive.

- A string is a sequence of characters. Typically, such string is used as a synonym for a phrase, that a user have written in a dialog. (E.g. Find what and Replace with strings from Find/Replace dialogs are always used in find/replace mechanisms.)

- A word is a non-empty sequence of alphanums. Underscores may be optionally included** within words and a phrase hello_world is then also treated as a single word within all Tools and Functions. All characters that such a word can consist of are called word letters or also word characters. Other characters are considered to be word delimiters

- A line is a sequence of characters, where two lines are divided by a CR/NL sequence of characters. Note, that if Word Wrap is turned on, a line may be wrapped, but within all tools it will be still treated as a single line. Also note, that a single NL or CR character does not divide two lines.

- An empty line is a line, that consists only of white-spaces. Therefore a non-empty line is a line, that contains at least one graph character.

- A paragraph is a sequence of non-empty lines. Two paragraphs are then divided by a non-empty sequence of empty lines.

- A sentence is a sequence of characters that begins with a capital and ends with a Dot, a Question mark or an Exclamation mark. Example: Alice? Who the f... is Alice? are two sentences, but Alice? Who the f... Is Alice? are three sentences. Unfortunatelly, even How are you today, Mr. President? are two sentences, which is not very true.

- A column is a sequence of characters on a line. Two columns are divided by any of the column delimiters. A column can not exceed a line. Typically, when a line is divided into logical parts by a special delimiter character (e.g. a Tab character), those parts are called columns. Columns are used to cut out a sub-string from a line.

- A char range is a sub-sequence of characters that begins and ends at the specified positions. Char range is used to cut out a sub-string from a longer column.

- An actual insertion point (also called a cursor position) is a position of the caret in the documnet or the end of the actual selection, if any. Note, that in special cases, it is the beginning of the selection, if any. These special cases are tools/features that work backward. (e.g. Find Previous or BkSpace Word.)

- To unique lines is to remove duplicate lines, to unify them. If lines or words are uniqued, it means that each line (word) is unique and there no two lines are of the same text.

*: Special characters like á (a with acute) do not belong to alphanums, nor capitals in English locale settings. To be able to recognize those characters as alphanums and capitals you have to use CTYPE category of the locale that supports it. TED Notepad always works with the system locale settings.

**: See section General page of the Settings dialog.

###### (c) 2001-2007, Medvedik, Juraj Simlovic, notepad
jsimlo.sk