From the Preferences dialog box under the Configure menu, you can change numerous settings in TextPad. While the settings have not changed much during upgrades to TextPad, some may differ slightly. These represent my settings as of January 2011 and should work in TextPad 4.x thru 9.x, and for many sections I have listed only those boxes I have changed. Many other settings are available, so feel free to experiment. I do not explain the settings here, but TextPad help provides considerable detail. See the "Help" button on the Preferences dialog box.
1. General | 6. Associated Files | 11. Language |
2. Files | 7. Backup | 12. Macros |
3. Editor | 8. File Name Filters | 13. Spelling |
4. View | 9. Folders | 14. Tools Menu |
5. Document Classes (e.g., HTML, Mplus, SAS, SPSS) | 10. Keyboard |
You must close all documents to add document classes. The document classes below are those I use. Many TextPad users will not need all of these, and some people may add different classes.
WARNING: at the bottom of the general settings page for most document classes, there is an option labeled "apply these settings to all document classes." Use this option with care. When checked, any changes to the current document class will propogate to ALL other classes defined, which may not be desired. There is no undo.
Top-level Settings Files in class: *.* [x] Maintain indentation [x] Automatically indent blocks [ ] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [x] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [ ] Word break at column number: 65 Colors: defaults Fonts Display: Letter Gothic MT, Bold, 11pt Printer: Courier New, Regular, 10pt Printing Header: &i&l&f&r&D_____ <underscores → 5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> [X] File Time [ ] Print Time Margins: .90 .50 .50 .50 [x] Word wrap long lines All other options off (not checked) Syntax: none. Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces [x] Convert new tabs to spaces [x] Convert existing tabs to spaces when saving
Top-level Settings Files in class: *.css [x] Maintain indentation [x] Automatically indent blocks [ ] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [ ] Word break at column number: 90 Colors: defaults Fonts Display: Letter Gothic MT, Bold, 12pt Printer: Courier New, Regular, 10pt Printing Header: &i&l&f&r&D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> [X] File Time [ ] Print Time Margins: .90 .50 .50 .50 [x] Word wrap long lines All other options off (not checked) Syntax [x] Enable syntax highlighing Syntax definition file: css.syn Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces [x] Convert new tabs to spaces [x] Convert existing tabs to spaces when saving
Top-level Settings Files in class: *.asp, *.cfm, *.htm, *.html, *.sgm, *.sgml, *.shtm, *.shtml, *.stm, *.stml, *.wrl [x] Maintain indentation [x] Automatically indent blocks [x] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [x] View in web browser [ ] Write Unicode and UTF-8 BOM [x] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [ ] Word break at column number: 110 Colors Keywords 2: purple Keywords 3: maroon Keywords 4: navy Keywords 5: green Comments: olive Strings: teal Comments 2: olive Fonts Display: Times New Roman, 15pt Printer: Courier New, Regular, 10pt Printing Header: &i&l&f&r&D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> [X] File Time [ ] Print Time Margins: .90 .50 .50 .50 [x] Word wrap long lines Syntax [x] Enable syntax highlighing Syntax definition file: html.syn Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces [x] Convert new tabs to spaces [x] Convert existing tabs to spaces when saving
Top-level Settings Files in class: *.mpi [x] Maintain indentation [x] Automatically indent blocks [x] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [x] Word break at column number: 60 Colors Keywords 3: purple Keywords 4: green Keywords 6: maroon Comments: olive Strings: silver Comments 2: olive Fonts Display: SAS Monospace, 11pt Printer: Courier, 10pt Printing Header: &i&l&f&r&t, &D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> Margins: 0.90 0.50 0.50 0.40 Syntax [x] Enable syntax highlighing Syntax definition file: Mplus.syn Tabulation Default tabs spacing: 4 spaces Indent size: 4 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Top-level Settings Files in class: *.mpo [x] Maintain indentation [x] Automatically indent blocks [x] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [x] Word break at column number: 80 Colors Keywords 3: purple Keywords 4: green Keywords 6: maroon Comments: olive Strings: silver Comments 2: olive Fonts Display: SAS Monospace, 12pt Printer: Courier, 10pt Printing Header: &i&l&f&r&t, &D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> Margins: 0.90 0.50 0.80 0.70 (Fits Mplus output page size) In Color: checked Syntax [x] Enable syntax highlighing Syntax definition file: Mplus.syn Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Top-level Settings Files in class: *.sas, *.log [x] Maintain indentation [x] Automatically indent blocks [x] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines ( ) Save hard breaks Check Spelling of [x] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [x] Word break at column number: 95 Colors (changes from default) Keywords 3: purple Keywords 4: green Keywords 5: (custom: semi-dark red) Keywords 6: red Comments: olive Strings: gray Comments 2: olive Fonts (fixed-space font works best, e.g., Courier New) Display: LetterGothic MT, Bold, 11pt (Alt: SAS Monospace, 10pt) Printer: LetterGothic MT, Bold, 9pt (Alt: SAS Monospace, 9pt) Note: sometimes TextPad display doesn't show immediately when switching. Printing Header: &i&l&f&r&D___ <+ 3 spaces at end> Footer: &i&l&F&rPage &p of &P___ <+ 3 spaces at end> Margins: .50 .40 .40 .30 No check boxes checked. Syntax [x] Enable syntax highlighing Syntax definition file: sas.syn Tabulation Default tabs spacing: 5 spaces Indent size: 5 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Top-level Settings Files in class: *.lst [x] Maintain indentation [x] Automatically indent blocks [ ] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines ( ) Save hard breaks Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [ ] Word break at column number: 116 Fonts (fixed-space font works best, e.g., Courier New) Screen: Courier New, Bold, 10pt (Alt: SAS Monospace, 10pt) (Alt: LetterGothic MT, Bold, 9pt) Printer: Courier New, Bold, 8pt (Alt LetterGothic MT, Bold, 8pt) (Alt: SAS Monospace, 8pt) Note: sometimes TextPad display doesn't show immediately when switching. Exit and restart. Printing Header: &i&l&f&r&D <+ 1 space at end> Footer: &i&l&F&rPage &p of &P <+ 1 space at end> Margins: .40 .40 .30 .20 No check boxes checked. Syntax [x] Enable syntax highlighing Syntax definition file: text.syn Tabulation Default tabs spacing: 5 spaces Indent size: 5 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Top-level Settings Files in class: *.sps [x] Maintain indentation [x] Automatically indent blocks [x] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [x] Word break at column number: 80 Colors Keywords 3: maroon Keywords 4: purple Keywords 5: Navy (default) Keywords 6: fuschia Comments: olive Strings: silver Comments 2: olive Fonts Display: SAS Monospace, 12pt Printer: Courier, 10pt Printing Header: &i&l&f&r&t, &D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> Margins: 0.90 0.50 0.30 0.25 In Color: checked Syntax [x] Enable syntax highlighing Syntax definition file: SPSS.syn Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Top-level Settings Files in class: *.lis [x] Maintain indentation [x] Automatically indent blocks [ ] Include trailing spaces when selecting words [x] Strip trailing spaces from lines when saving [ ] View in web browser [ ] Write Unicode and UTF-8 BOM [ ] Word wrap long lines (o) Save with no breaks in lines Check Spelling of [ ] Comments [x] Strings [ ] Words with underscores Default encoding (o) ANSI ( ) DOS ( ) UTF-8 Create new files as (o) PC ( ) Unix ( ) Mac [x] Word break at column number: 80 Colors Keywords 3: maroon Keywords 4: purple Keywords 5: Navy (default) Keywords 6: fuschia Comments: olive Strings: silver Comments 2: olive Fonts Display: SAS Monospace, 12pt Printer: Courier, 10pt Printing Header: &i&l&f&r&t, &D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> Margins: 0.90 0.50 0.30 0.25 In Color: checked Syntax [x] Enable syntax highlighing Syntax definition file: text.syn Tabulation Default tabs spacing: 2 spaces Indent size: 2 spaces Convert new tabs to spaces: checked Convert existing tabs to spaces when saving: checked
Fonts Display: Letter Gothic MT, Bold, 11pt Printer: Courier New, Regular, 10pt Printing Header: &i&l&f&r&D_____ <5 spaces at end> Footer: &i&l&F&rPage &p of &P_____ <5 spaces at end> [X] File Time [ ] Print Time Margins: .90 .50 .50 .50 All other options off (not checked)
Faster V More Search . . . . . . . . . . . Accurate
The tools options below include some redundancy. Under Preferences, the Menu Text is set on the Tools list, while the other options are set independently for each tool. To add a tool, from the Tools list, select Add and then Program.
The first option, Analyze, runs either SAS or Mplus, depending on the file extension. It runs a small Windows batch (.bat) or command (.cmd) file that picks the analyses type based on the file extension. This allows me to define one "Analyze" key in TextPad without worrying about which program I need to run. I define Alt-A to run this "Analyze" tool. The SAS and Mplus options that follow provide additional examples of how to setup tools.
Menu Text: Analyze (Low Priority) Command: "C:\Program Files\Analyze.bat" ←(click to view) Parameters: $File Low Initial Folder: $FileDir Check boxes: [X] Run minimized
Menu Text: SAS System Note: On windows NT or XP: Choose "Add DOS Command" Command: cmd.exe (grayed, not editable) Parameters: Start "SAS Program" /low "{SASfolder}\Sas.exe" $File -NOSPLASH -CONFIG "{SASfolder}\SASV8.CFG" Initial Folder: $FileDir Check boxes: [X] Run minimized; [X] Close DOS window on exit
Menu Text: Mplus Command: C:\Mplus\Mplus.exe Parameters: $File $BaseName.mpo Initial Folder: $FileDir [x] Capture output [x] Sound alert when completed Regular expression to match output: ^ +\(Output saved in\|Refer to\|An error has occurred, refer to\|Running input file\) \'\([^']+\) Registers, File: 2 Line:Column: Alternate Command: Start "Mplus Program" /low C:\Mplus\Mplus.exe
Menu Text: SPSS Command: C:\Program Files\SPSS\runsyntx.exe Parameters: $File Initial Folder: $FileDir
Menu Text: SPSSwin Command: C:\Program Files\SPSS\spsswin.exe Parameters: $File Initial Folder: $FileDir
Menu Text: Install INF Command: C:\WINNT\system32\rundll32.exe Parameters: setupapi,InstallHinfSection DefaultInstall 132 $File Initial Folder: $FileDir [x] Run Minimized