tPad 2.9

tPad is a text editor written in Eve (www.ewesoft.com), designed mainly for PDAs, because good editors on PDAs are rare.
tPad has following features:

Installation

  1. Get the Eve VM from www.ewesoft.com and install the VM
  2. Get tPad.zip from www.t-arn.com
  3. Extract tPad.eve and the subdir _config with all files within from tPad.zip and store them in some directory of your choice
  4. Double-click tPad.eve or start it with 'Eve.exe tPad'

Uninstalling tPad

  1. Delete the following files:
  2. Delete the following registry key: HKEY_CURRENT_USER\Software\t-arn.com\tPad

GUI Elements

There are following GUI elements:

Details to some features

Find / Replace

In the 'Find text' field you can use ^t to search for tabulators and in the 'Replace with' field you can use ^t for a tabulator and ^n for a newline. If the editor is in autoTAB mode, newlines will be properly autoTABbed.

Textblock support

Textblocks are text portions that can be given a short name. The textblock is inserted by typing the short name and then clicking on the TB button or choosing the menu item. The short name is then replaced by the text portion. If the short name is not recognized, the textblock can be chosen from a list. In this case there will be no replacing, the text portion is inserted. The textblock file is a text file in the _config subdirectory with an extension .textblock, where every line specifies a textblock in the following format:
shortName   textblock
The textblock must be separated from its short name by a tabulator. The textblock can contain ^t for a tabulator and ^n for a newline. If the editor is in auto-tab mode, newlines will be properly autoTABbed.

Development functions

In the Develop sub-menu there are the functions language-help, compile and run. In the extensions file (tPad.extensions) you can define which external programs should be started when those functions are chosen - and this not only once, but for all file types (extensions) you need. Also, you can define which textblock file should automatically be loaded when a file of a certain type is being edited.

tPad.extensions is a tab-delimited textfile with the following format:
extension<TAB>function<TAB>command<TAB>parameters

To specify functions for files with no extension, simply add line with no extension at all.

'function' is a fix text which can be:

'command' can be an external program (specify the full path) or the fix text CMDFILE. For SETTINGS and TEXTBLOCK 'command' is the settings / textblock filename. If (and only if) 'command' specifies an external program then it should be encloded in double-quotes (") if it contains blanks.
'parameters' is optional and specifies all command-line parameters of 'command'
In 'command' and 'parameters' you can use following place holders:

If you specify CMDFILE as 'command' then you must define the name of the file in 'parameters'. The external program to be executed must then be defined in the first line of that file. You cannot use the place holders here, because the CMDFILE is exactly meant to be used in cases where the command cannot be defined with the place holders. If the specified file in 'parameters' does not exist (it is usually defined in the directory of the edited file: %dMyCommand.txt) then the function is temporarily deactivated. You will get the error message "No definition in the extensions file for this command".

Examples:

java   HELP   \Windows\iexplore.exefile://\Storage%20card\!Daten\Eve\doc.html
java   COMPILE   "\Storage Card\Programme\Java\bin\pjava.exe"   -classpath "\Storage Card\Programme\javac" -file "\Storage Card\!Daten\java\com\t_arn\taJCwrapper\taJCwrapper.jar" -deprecation -verbose -classpath "\Storage Card\!Daten\Eve;\Storage Card\Programme\Eve\classes" "%d%f.%e"
java   RUN   CMDFILE   %dRunApplication.cmd
java   SETTINGS   \Storage Card\!Daten\Eve\com\t_arn\tPad\PDA\_config\tPad-develop.settings
java   TEXTBLOCK   \Storage Card\!Daten\Eve\com\t_arn\tPad\PDA\_config\tPad-eve.textblock

Multiple extension files are supported. This is useful, if you have different types of source files that all have the same extension. For example Ewe, Eve and Java source files all have a .java extension but need different commands. By default, tPad.extensions is loaded. If the user loads a new extension file, this will change the development assignments for the current file and all files that are loaded in new panels.

Rectangular blocks

A rectangular block is selected like a normal block, but the block copy command only copies the columns from the column of the beginning of the selection till the column of the end of the selection.
A rectangular block can be pasted as a normal block. But if it pasted as a rectangular block, every line is inserted into the existing lines. Blanks are inserted at the beginning (where needed) to make sure the rectangular block stays rectangular.

Text settings

The text settings can be stored in a file and then referenced in the extensions file. If there is a tPad-default.settings file in the _config subdirectory of tPad, then these settings are loaded instead of the built-in default settings when tPad starts or when a new file is being edited.

Sorting lines

To sort lines, auto-wrap must be off and the lines must be selected. The sort function supports following options: