Enabling Word Wrap by default
Click on Configure > Preferences. Under “Document Classes” on the left, click the ‘+’ button and then choose “Default”. You should see the default preferences for files show in the right-side of the pane. Make sure “Word wrap long lines” is checked and hit “Ok”.
Now whenever you open a document, TextPad will automatically wrap long lines at the word boundaries.
Enabling Line Numbers by default
Click on Configure > Preferences. On the left, click “View”, you should see the various View Options on the right. Make sure “Line Numbers” is checked and hit “Ok”.
Now every file that is opened will automatically show line numbers in grey on the left.
Adding A New Document Type
Let’s say you want to add SVG as a new document type to TextPad so syntax highlighting for SVG elements and keywords will be present.
- First, ensure that SVG is not a recognized doc type within TextPad already: Configure > Preferences and click the ‘+’ beside “Document Classes” on the left. If you have a XML doc type, select it and ensure that the *.SVG extension is not present in the “Files in class XML” section on the right. Close all instances of TextPad
- Go here and scroll to “Scalable Vector Graphics”. Download the syntax zip file and unzip it into your TextPad system folder (mine is C:\Program Files\TextPad 4\system).
- Start TextPad and go to Configure > New Document Class. Type “SVG” for the Document class name. Next, type “*.svg” for the Class memebers. Next, check the box “Enable syntax highlighting” and choose the “svg.syn” file from the “Syntax definition file” pulldown box. Next, click Finish.
- Open a SVG file in TextPad to verify that syntax highlighting is present.
Optionally, you may also want to associate the TextPad program with the SVG file type (this is done via Windows, not by TextPad), but what’s nice about TextPad is that it is always an option when you right-click a file in Windows (in Windows XP you may have to click Send To > TextPad).