Scripting Outlook Journal
Which is the best DN site?
Tunnel visions
Programming Links
Code obfuscator!
« Getting interested in SVG
» Mandrake 9 - Getting more software
I ask, no, I beg if you do nothing else with your code, please, please, please format it properly. ... Indentation, spacing, break up long lines, logical variable names, avoid global variables, avoid duplication of code, avoid excessively long methods.
An emotional and sensible plea! I used to plead and curse about this quite often.
Any given day since 1995, I had to read and/or write programs in atleast 3 different languages including C, C++, HTML, Perl, PHP, SQL and PL/SQL, Shell, Awk, Python, Javascript, Java, COBOL, ASP, VB and various Markup Languages to name a few. So what is the solution? Wari got it right.
You could use pythonwhere indentation is necessary and resistance is futile.
Amen.
Another solution is to see if a language has some tool that can indent the code for you.
GNU Source Hilite is a good tool if you want to produce color-coded HTML listing of your code.
Linux C-C++ Beautifier how-to has a section on other languages.
Is there a beautifier for C-shell script? Thank you!
GNU indent should be able to format C-shell to a certain extent. I've not programmed in C-shell and so it is just a guess.