TextPad Configuration

TextPad is a great context-sensitive editor for Java (it shows syntax in color, indents automatically, supports compiling, etc.) It also enables you to compile and run programs from within TextPad. (It likewise displays syntax in color for various other languages such as HTML, C++, Perl...)

These instructions are for menus from TextPad 4.7.3, but much is similar... You can download 4.7.3 here: http://www.textpad.com/download/

Prerequisite: the Java SDK is installed, PATH includes the path of the Java SDK including /bin, and the javac

command works..

Keyboard shortcuts

In TextPad's Configure > Preferences:

The following enables F3 to jump to the next occurrence of whatever phrase you highlight:
Keyboard: File > FileManage: click "F3" in the "Current keys" list and click Remove (this makes F3 available for something else)
Keyboard: Search > SearchFindNext: click "Ctrl-f" in the "Current keys" list and click Remove (this makes Ctrl-f available for something else)
Keyboard: Search > SearchFindNext: click in the "Press new shortcut key" field, press the F3 key, click Assign and click Apply

The following enables Ctrl-F to display the SearchFind window:
Keyboard: Search > SearchFind: click in the "Press new shortcut key" field, press Ctrl-f, click Assign

The following enables Alt-c to copy the current file path to the clipboard:
Keyboard: Edit > EditCopyFileName and/or EditCopyAllFileNames:click in the "Press new shortcut key" field, press Alt-c, click Assign

Formatting

In TextPad's Configure > Preferences:
General: check Allow multiple instances to run
General: uncheck Display startup logo
File: set recent to 9, workspace to 4, and blank the file extension field; leave the rest as-is
View: uncheck Audible alerts
View: under Dockable log windows, uncheck both boxes
View: uncheck Highlight line containing cursor
View: check Line Numbers
View: uncheck Popup tips
View: uncheck Stay on top of other windows
View: check Transparent dialog boxes
View: uncheck Paragraphs
Document Classes > Default: check Maintain indentation
Document Classes > Default: check Automatically indent blocks
Document Classes > Default: check Automatically indent blocks
Document Classes > Default > Colors > Strings > Foreground: Fuschia (the purple one)
Document Classes > Default: check Strip Trailing Spaces
Document Classes > Default: check View in web browser
Document Classes > Default: uncheck Word wrap long lines
Document Classes > Default: check Word break at column number and change the word break column number to 90
Document Classes > Default > Colors > Strings > Foreground: Fuschia
Document Classes > Default > Colors > Selected Text (no focus) > Background: Gray
Document Classes > Default > Font: Screen, Courier New, Size 12
Document Classes > Default > Font: Printer, Courier New, Size 10
Document Classes > Default > Font: check the box for DOS; set the font to Courier New, Size 10; click Apply
Document Classes > Default > Printing: clear the Header and Footer boxes; set Left and Right margins to 0.5
Document Classes > Default > Tabulation: put 2 in both top boxes
Document Classes > Default > Tabulation: uncheck the two "Convert" boxes
Document Classes > Tool Output: uncheck "Word wrap long lines"
Document Classes > Java > Tabulation: put 2 in both top boxes AND check the two boxes below those
Folders > Startup: Type the complete path of the directory in which TextPad should first look when you use File > Open
Tools: if you see Compile Java, Run Java Application and Run Java Applet, you are all done. If you do not, click Add > JDK commands
Click Apply and OK

menu View > Document Tabs (uncheck)