More TextPad Tips

In an earlier post, Software Review: TextPad 5, I listed five tips for getting the most out of TextPad. Here are five more:

TextPad LogoTip #6: Generating Sequence Numbers - Sequence numbers can be generated via the Search and Replace function by including “\i” (without the quotes) in the replacement string. For example, say that you have a list of items with hyphens for bullets, and you want to number them instead.

- This
- That
- Another

Highlight the lines, and then bring up Search and Replace. With the “Regular expression” box checked, and the scope set to “Selected text” replace “^- ” with “\i. “. (The caret before the dash means that the dash must be at the beginnig of the line.)

1. This
2. That
3. Another

Tip #7: Opening Files in the Same Folder - The General section of the Preferences dialog has a handy option called, “Working folder follows active document.” This means that if one file is currently being editing and the Open dialog is brought up in order to open a second, the dialog box will automatically start out in the same folder as the first file. If more than one file is already open, then whichever file currently has focus determines the current folder.

Tip #8: Make a Best-Of Clip Library - The clip libraries are plain ASCII files (*.TCL). So, it’s easy to work with them en masse. For example, the “HTML Characters” library and the “HTML Tags” library could be combined into a single “HTML Characters & Tags” library and then weeded down to only those characters and tags that are of interest.
IMPORTANT: The first line of each TCL file is a serial number (”!TCL=6000, “) and it must be unique for all of the TCL files in your clip library folder. So, be sure to change it to some other random number whenever making a copy of a TCL file.
Edit Clip LibraryTip #8a: Quickly Edit Clip Library - To quickly edit the source text of any clip libary, select that clip library in the Clip Library pane. Then, right-click on the library name and select “Edit book.”

Tip #9: Use the Caret Convention for Surround-Style Snippets - In the clip libraries, there are two choices for how each snippet is inserted. One way is to replace the current selection (or simply be inserted at the cursor if nothing is selected), and the other way is for it to surround the current selection. Normally, there wouldn’t be any way to tell the difference between snippet types when using a clip library, so the convention is that surround-type snippets have a trailing caret symbol (^) in the name. When defining your own snippets, it is highly recommended that you continue to follow this naming convention.

Tip #10: File Names Without Extensions - If you want to be able to create files with names that do not have a filename extension (such as Unix shell scripts), then you’ll need to changes the Default File Extension setting (Configure | Preferences | File ). The factory setting is “txt”, which means that whenever you try to save a file as “foobar” it will actually get saved as “foobar.txt”. (This settng has no bearing on working with an existing file and using Save. It only applies to using Save-As, or the first-time Save of a new file.)

Related articles:

Comments

  1. I keep sticking with Crimson for one single reason: block edit. Not just any block edit; you can select a vertical block of 0 (zero) chars, and just start typing. And you type across the selected number of lines simultaneously. Any other text editor out there that can do that?

  2. That sounds like a interesting feature. Since I never thought about block editing I gave it a try in TextPad. No dice. The only things you can do when a text block is selected are copy and paste. I’ll have to check out Crimson and see how it compares to TextPad.

    BTW. For those of you on a Mac, what are you using for text editing?

  3. Crimson is certainly outdated in comparison to pretty much any text editor. It hasn’t been updated in a few years, and the author never released the code. Like I said, if I could find a more upto date sw with the same block edit capability I’d switch, but so far, nada.

  4. Vladimir,
    so did you have a chance to look for that block edit feature on Crimson? Also, did you see something like that in any other editor?

  5. I didn’t download Crimson since you mentioned that it hasn’t been maintained for a while. You might want to look at EditPadPro (http://www.editpadpro.com). It has a ton of features around selected blocks.

Post a Comment


Your email is never published nor shared. Required fields are marked *



© 2006-2007 Maxim Software Corp.  All rights reserved.