Java Calculator Source Code Php,aspjava,java code formatting tool collation

Source: Internet
Author: User
Tags tidy
PHP Code formatting tool http://www.waterproof.fr/products/phpCodeBeautifier/
Recently modified a code, there is no indentation, with this can be formatted a bit.
Equivalent to the previous C indent
By the way, write about other languages.
C, C + + C # ==> indent Astyle
Java ==> astyle Jalopy jacobe importscrbber
PHP ==> Phpcodebeautifier
Perl ==> Perltidy
Python ==> pydent
ASP ==> Vbsbeaut

Tool Name Applicable language Brief introduction Installation/Use
Indent C Indent is synonymous with code beautification tools Indent is a standard tool that ships with GCC,
indent [options] [Input-files]
indent [options] [Single-input-file] [-O output-file]
Perltidy Perl Perltidy itself was written in Perl. After download: perl makefile.pl;make;make Install
Perltidy [Options] file1 file2 file3 ...
(Output goes to File1.tdy, File2.tdy, File3.tdy, ...)
Perltidy [Options] File1-o outfile
Perltidy [Options] file1-st >outfile
Perltidy [Options] outfile
Astyle C C + + java (PHP) A fast-C/c++/java source code beautification tool.
Astyle than indent There are many sets of style definition: ANSI Java Linux ... You do not have to remember the complex indentation specific options.
After downloading the source code unpacking, make, generate the Astyle executable file
Astyle [Options] < Original > beautified
Astyle [Options] Foo.cpp Bar.cpp [...]
Astyle--style=ansi *.cpp
I tried to use it to format the PHP program is also very effective (of course, not HTML code mixed with the pure PHP code).
Jalopy Java Powerful Java Code formatting tool, in addition to the standard interface, command line tools, can also be used as a plug-in for tools such as Ant JBuilder ECLIPSE JDeveloper, and provide APIs Download from http://prdownloads.sourceforge.net/jalopy/
and refer to the appropriate installation documentation
Pydent Python The Pythius consists of 2 tools:
Pydent: Code indent Tool
Pystat: Code Statistics tool
After downloading the source code unpacking:
Run "Python setup.py Build"
Run "python setup.py Install"
Htmltidy Html/xml The error correcting tool for HTML code can help your HTML code better conform to the specifications, now known as tidy, because it is not only used in HTML, but also now applies to the formatting of XHTML XML.

But JSP is not suitable for code beautification of embedded scripts such as ASP PHP JSP

After downloading the source code make generate the tidy executable file:
Tidy file1 file2 ...
Note: To use the-raw option for pages that contain Chinese

Tidy.exe-raw-imuq-wrap 132-f%f.err%f

Option Description:
-raw: Do not modify Chinese characters (output values above 127 without conversion to entities)
-I indend default HTML is indented by 2 spaces
-M Overwrite original file
-U forces all HTML tags to be capitalized (this is not added)
-wrap page code width greater than 132 lines Force line wrapping
-F%f.err Error output to "appropriate file name. err" file
Htmltidy supports XML format beautification:
TIDY-XML-IMQ Web
TIDY-XML-IMQ Build.xml

The above describes the Java Calculator source Code Php,aspjava,java Code formatting tool collation, including the Java Calculator source code content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.