View AutoIndented Files

General questions about using TextPad

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

Post Reply
Frank P

View AutoIndented Files

Post by Frank P »

is there any way to view a file that was created on Unix vi with autoindent on? This means that when an open brace is encountered, the subsequent line is indented one tab space without the tab being inserted.
Randall McDougall

Re: View AutoIndented Files

Post by Randall McDougall »

The problem is that there's no way to know (in a text file) if that option was on or not... a Macro could emulate it I suppose ... add the spaces when you start and have another to take them off ...

To do it the way you want however you'd need some provision in the Document Class definitions -- either some way of doing custom indenting builtin, or a way to autorun a Macro at startup/shutdown for any files loaded in that class (which wouldn't be a bad feature in general actually).
Post Reply