On Thu, 20 Jun 2002, Dave Tweed wrote: >Uri Sabadosh wrote: >> Use the Brief editor. It has a global (file scope) replace that accepts the >> tab key as a character to replace. Replace with four space chars. > >Most editors have that capability. Works fine as long as all tabs start at >the left edge. If you have any right-side comments, etc., lined up with >tabs, though, you'll still end up doing a lot of fixing-up by hand. Or use an editor with regular expression capability where you can tell it not to touch lines that are comments. Or use awk which can do the same. Or use BAWK.ZIP which is awk for DOS/W32. Or run the file through the assembler and then process the .lst file to extract rewritten source lines. (I do not remember if MPASM rewrites the source lines - other assemblers do at least align to the leading printable character in each source line). In C use indent (also a GNU program). Some artifices may be necessary to deal with non-ANSI microprocessor C constructs. indent is excellent to turn spaghetti C into readable files imho. Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads