Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOWTO format C code syntax 1

Status
Not open for further replies.

Malachi

Programmer
Aug 13, 2001
38
US
I have a lot of source code files written using the MD-DOS editor. The format of the sourcecode appears to be different when viewed using the MSVC++ IDE than when viewed using MS-DOS edit. For example, if a line in the MS-DOS editor begins on column 5, the MSVC++ IDE shows it beginning on column 10.

I can format the source code to appear justified as C source code by going through the text line by line and deleting the leading blanks or tabs and then pressing the return key. However, this is tedious and time consuming. How can I format the source code syntactically without going through it line by line?
 
hi!!
i think u should try this!!
select all ur code and press Alt+8 or Alt+F8;
this will do auto formation!! hope this will work!

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top