From: Grigory Batalov <bga-no-spam@kovgok.ru> To: community@altlinux.ru Subject: Re: [Comm] Форматирование исходников Date: Mon, 22 Mar 2004 11:20:17 +0300 Message-ID: <20040322112017.791b3770.bga-no-spam@kovgok.ru> (raw) In-Reply-To: <20040322103432.417315b4@nikon.e-nk.ru> On Mon, 22 Mar 2004 10:34:32 +0300 Denis Klykvin <nikon@e-nk.ru> wrote: > > Хочу отформатировать исходники на C и PHP для улучшения > > читабельности. Заменить отступы табуляциями, поставить пробелы > > вокруг операторов и т.п. Есть ли для этого инструментарий? > > > > Например, заменить > > > > if(a!=b) > > { c=0; > > /* some command */ > > } > > > > на > > > > if (a != b) { > > c=0; > > /* some command */ > > } > astyle или indent ? Спасибо! Посмотрел обе, больше понравилось indent: indent -br -bli1 -i8 test.c Как раз то, что надо. -- Григорий Баталов, начальник бюро системного администрирования ОАО "Ковдорский ГОК" +7-(81535)-76036
next prev parent reply other threads:[~2004-03-22 8:20 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-22 7:21 Grigory Batalov 2004-03-22 7:34 ` Denis Klykvin 2004-03-22 8:20 ` Grigory Batalov [this message] 2004-03-22 7:52 ` Evgeny Yugov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040322112017.791b3770.bga-no-spam@kovgok.ru \ --to=bga-no-spam@kovgok.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git