Tools for alignment of code?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Tools for alignment of code?
# 1  
Old 07-15-2008
Tools for alignment of code?

Hello,

Do we have any freeware which helps in alignment of code wrt spaces, sections etc?

Thanks
# 2  
Old 07-15-2008
u could load it all into vim.
# 3  
Old 07-15-2008
For C code, you could investigate GNU indent.
# 4  
Old 07-15-2008
man vi
look about .exrc
# 5  
Old 07-15-2008
Hi.

It would be useful if you told us which language ... cheers, drl
# 6  
Old 07-15-2008
# 7  
Old 07-15-2008
Hi.

Perhaps a universal approach:
Quote:
Description: GUI frontend for several code beautifiers
UniversalIndentGui is a GUI fontend for several code beautifiers, currently
supporting Artistic Style (Astyle), BCPP, CSSTidy, GNU Indent, GreatCode,
HTML Tidy, PerlTidy, phpCodeBeautifier (phpCB) and Uncrustify.
UniversalIndentGui allows you to tune a beautifier's configuration and see
how the changes affects a source example live. It is especially useful to
compare different C/C++ beautifiers when you have to choose one of them.
Homepage: UniversalIndentGUI

-- GNU/Debian apt-cache
Best wishes ... cheers, drl
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Help with awk alignment

Dear All, I am in the beginning stage of learning shell scripting and preparing shell script on my own now. I would like to get help from fellow mates here. As I am trying to take O/P with space included from I/P table. Kindly guide me to align given I/P table as Expected O/P. ... (5 Replies)
Discussion started by: Raja007
5 Replies

2. Shell Programming and Scripting

Row alignment

*1 flash read test(*do_test1*) PASS *2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx *1 flash read test(*do_test1*) PASS *2 xxxxxxxxxxx flash write test(*do_test2) FAIL ------>xxxxx I want pass and Fail to be aligned if each line uses printf or echo to print, is... (5 Replies)
Discussion started by: yanglei_fage
5 Replies

3. AIX

Code analysis tools for C programs

Hi I need a list of code analysis tools for C programs, that can work on AIX environment such as : dynamic or static code analysis Code Complexity Measures Test Coverage Analyzer Unit tests profiling tools Source code formatter I've found several tools but not compatible with AIX... (0 Replies)
Discussion started by: SteAlma
0 Replies

4. UNIX for Dummies Questions & Answers

awk code to reconstruct sequence from alignment

Hi Everyone, I need some help to construct a long 'Sbjct' string from the following input using incremental order of 'Sbjct' starting number (e.g. 26325115,33716368,33769033,34869860 etc.) Different 'Sbject' string will be separated by 'NNNN's as: ... (6 Replies)
Discussion started by: Fahmida
6 Replies

5. HP-UX

HP-UX text alignment

HI all, I tried to edit my files using HP-UX but my output tends to not align when I add another character in the files to edit my files i used the command is as follow chmod +w filename vi filename Help, :eek: (1 Reply)
Discussion started by: jasonhpwong
1 Replies

6. UNIX and Linux Applications

Suspect code in Speech Tools

When ran configure for speech tools 1.2.96-beta (festival speech synthesis) on Slackware 13.0 seems it is erroneously coded. This code sequence gets flagged 5 times http://www.unix.com/images/icons/icon8.gif in configure: int main() { int j= #if __GNUC__ == 3 ... (6 Replies)
Discussion started by: slak0
6 Replies

7. Shell Programming and Scripting

alignment

Hi, I am having a file with with format. however, for longer xml, the xml code has been truncated like this. F1 |###################### |String1 |<XML><REQ><MSGTYPE>DBDIRECT</MSGTYPE><SYNC>0</SYNC><CLIENT>C11</CLIENT>NAME=MYNAME|JOB=MYJOB| | ... (3 Replies)
Discussion started by: shellwell
3 Replies

8. UNIX for Dummies Questions & Answers

VI paste out of alignment

We have a guy at work who is trying to copy and paste from one file to another using vi and highlighting the code to copy with a mouse. Source file: xyz 123 abc 999 zyx 321 cba 999 xyz 123 abc 999 But when he pastes it he gets (I put the underlines in to show... (4 Replies)
Discussion started by: dlam
4 Replies

9. UNIX for Dummies Questions & Answers

Column Alignment

I copied a word file to my Unix directory, How do I line up my columns to the file I copied over? (3 Replies)
Discussion started by: nikncha
3 Replies
Login or Register to Ask a Question