delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/09/01:01:16

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Missing Seperators using MAKE...How to insert TABs???
Date: Mon, 08 Dec 1997 21:47:28 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 42
Message-ID: <348C6AF0.5A72@cs.com>
References: <348B66D9 DOT 4A954648 AT nh DOT ultranet DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp223.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Brian Sturk wrote:
> 
> I am using MultiEdit for Dos and cannot figure out how to insert a real
> tab into an edited file.  Anyone have any idea how to do this?  Thanks
> in advance!

Different editors have different ways of handling tabs vs. spaces.  I
don't know anything about MultiEdit, but here are some suggestions for
getting it to use real tabs:

- Look in its options to see if there is a setting, "Use Real Tabs", or
anything similar.
- Try inserting a tab with Ctrl-I.  If that doesn't work, try Alt-0009
(using the numeric keypad).
- Try loading a file that already has literal tabs instead of spaces. 
This convinces some editors (like DOS Edit) to use real tabs.
- If you really get desperate, load the file into a hex-editor and
manually change spaces to tabs. (search for "        "; replace with
ascii 009.)

If you cannot in any way convince your editor to use literal tabs, then
you'll have to find another one.  If you know who wrote the thing, send
them email and complain loudly.  :-)

Some other convenient editors that I know work:  DOS 6.22 Edit (but not
DOS 7.0), Windows Notepad (although you may have to convince it to save
in the proper format).

The two major DJGPP editors/IDEs, RHIDE and Emacs, both use literal tabs
if set properly.  I think that they are worth learning if you are
willing to take the time.

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "History does not record anywhere at |
|       aka Fighteer I       | any time a religion that has any     |
|   mailto:fighteer AT cs DOT com   | rational basis."                     |
| http://www.cs.com/fighteer |                - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019