> All; > I still develop in what a lot of folks would consider a fairly "primiti= > ve" environment (vi) that doesn't do anything for style checking things lik= > e line width/spacing before and after control statements/indentation/variab= > le declaration/etc=2E I know of the indent tool available on most unix-like= > systems, but was wondering if you folks use any other tools to help along = > that path?
I use vi too: :help !}fmt 76 :se ai :se noai :se list :se nolist PS Caution: fmt on FreeBSD is (or was) not 8 bit clean. http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.bin/fmt/ Some of the vi clones do more formatting & colour highlighting & syntax/ bracket matching (while fine for Reading code, the colour flashing drives one mad adding new code) I forgot the name 'vim' but found again via http://www.freebsd.org/cgi/ports.cgi?query=vi&stype=all&sektion=editors I just noticed http://berklix.com/~jhs/src/bsd/jhs/bin/public/tab/ does not take pipes (so forget that with !} ). Oh well, I'm too busy ! http://berklix.com/~jhs/src/bsd/jhs/bin/public/brackets/ 'tidy' for html of course http://www.w3.org/People/Raggett/tidy/ http://svnweb.freebsd.org/ports/head/www/tidy/pkg-descr?revision=HEAD http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/contrib/nvi/README.wysiwyg.multi_linked.no_customise My WYSIWYG hooks for tying nvi into ghostview, chimera etc for .ps & .pdf & .html viewers (so one can hack txt with vi & auto format & redisplay each ':w' ) - no reason one couldnt extend such a trick to C ) There's been C beatifiers for decades, https://www.google.de/search?q=c+beautifier&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&gfe_rd=cr&ei=PF5XVanWG8WK8QfT1oGQBg >From man style I just found man indent indent and format C program source http://www.freebsd.org/cgi/man.cgi?query=indent&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE&arch=default&format=html Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Indent previous with "> ". Reply Below as a play script. Send plain text, Not quoted-printable, HTML, or base64.
