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:
There are following GUI elements:
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.
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.
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:
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.
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.
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.
To sort lines, auto-wrap must be off and the lines must be selected. The sort function supports following options: