Need UNIX format even though using TextPad on a PC.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
nlw
Posts: 1
Joined: Mon Oct 02, 2006 10:52 pm

Need UNIX format even though using TextPad on a PC.

Post by nlw »

Is there a way to set Preferences so that all TextPad files will save as file format UNIX when using TextPad on a PC?

Or, is there away to globally change a set of TextPad files from PC file format to UNIX file format?

Thank you
kindlerm
Posts: 11
Joined: Wed Jan 11, 2006 11:19 am
Location: Berlin, Germany

Post by kindlerm »

You can define this in the documentclass.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

As kindlerm points out, you can tell TextPad to save new files in Unix format, either all of them or just those in particular classes:
Configure | Preferences | Document Classes | <Class> | Create new file as: UNIX.

There's no way to tell it to save all existing files in Unix format. But you can
File | Save Aas... | File Format: UNIX.

Alternatively, you can convert the files on the command line using such a utility as dos2unix.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

You can download and try the other great product offered by Helios, WildEdit. It will convert files en masse from one format to another. I tried and it works.
:)

Find what:
\x0d\x0a

Replace with:
\x0a

Be sure to check both Regular expression and Replacement format.
:oops:
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply