Files
awesome-awesomeness/html/codeformatters.html
2025-07-18 23:13:11 +02:00

187 lines
7.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<p>A curated list of code formatters. Inspired by
awesome-machine-learning. Other awesome lists can be found in the <a
href="https://github.com/bayandin/awesome-awesomeness">awesome-awesomeness</a>
list.</p>
<p>If you want to contribute to this list (please do), send me a pull
request or contact me <a href="https://www.twitter.com/rishirdua"><span
class="citation" data-cites="rishirdua">@rishirdua</span></a></p>
<h2 id="table-of-contents">Table of Contents</h2>
<!-- MarkdownTOC depth=4 -->
<ul>
<li><a href="#general-purpose">General Purpose</a></li>
<li><a href="#language-specific">Language Specific</a>
<ul>
<li><a href="#cc">C/C++</a></li>
<li><a href="#cobol">Cobol</a></li>
<li><a href="#css">CSS</a></li>
<li><a href="#fortran">Fortran</a></li>
<li><a href="#haskell">Haskell</a></li>
<li><a href="#html">HTML</a></li>
<li><a href="#java">Java</a></li>
<li><a href="#javascript">JavaScript</a></li>
<li><a href="#jsp">JSP</a></li>
<li><a href="#net">.NET</a></li>
<li><a href="#perl">Perl</a></li>
<li><a href="#php">PHP</a></li>
<li><a href="#plsql">PL/SQL</a></li>
<li><a href="#python">Python</a></li>
<li><a href="#ruby">Ruby</a></li>
<li><a href="#shell">Shell</a></li>
<li><a href="#vbs">VBS</a></li>
<li><a href="#xml">XML</a></li>
</ul></li>
</ul>
<!-- /MarkdownTOC -->
<h2 id="general-purpose">General Purpose</h2>
<ul>
<li><a href="http://astyle.sourceforge.net/">Artistic Styler</a> -
Source code indenter, formatter, and beautifier for the C, C++, C# and
Java programming languages.</li>
<li><a href="https://atom.io/packages/atom-beautify">Atom-Beautify</a> -
Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#,
Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom
editor.</li>
<li><a href="https://prettier.io/">Prettier</a> - An opinionated code
formatter for JavaScript, Flow, TypeScript, Vue, JSON, CSS, Less, SCSS,
GraphQL, and Markdown</li>
<li><a href="http://uncrustify.sourceforge.net/">Uncrustify</a> -
Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA.</li>
<li><a href="https://unibeautify.com/">Unibeautify</a> - Universal code
beautifier with a GitHub app. Supports HTML, CSS, JavaScript,
TypeScript, JSX, Vue, C++, Go, Objective-C, Java, Python, PHP, GraphQL,
Markdown, and more.</li>
<li><a
href="http://clang.llvm.org/docs/ClangFormat.html">clang-format</a> -
Automatic formatting for C, C++, Java, JavaScript, ObjectiveC and
Protobuf.</li>
</ul>
<h2 id="language-specific">Language Specific</h2>
<h4 id="cc">C/C++</h4>
<ul>
<li><a href="http://invisible-island.net/bcpp/">BCPP</a> - indents C/C++
source programs, replacing tabs with spaces or the reverse.</li>
<li><a href="http://www.gnu.org/software/indent/">GNU Indent</a> - Unix
utility that reformats C and C++ code in a user-defined indent style and
coding style. GNU style is used by default.</li>
<li><a href="http://sourceforge.net/projects/gcgreatcode/">GreatCode</a>
- C/C++ source code beautifier that is now fully open source.</li>
</ul>
<h4 id="cobol">Cobol</h4>
<ul>
<li><a href="http://www.siber.com/sct/tools/cbl-beau.html">Cobol
Beautifier</a> - Parses your program just like a real Cobol compiler and
then it generates Cobol code from the resulting Cobol Program Tree.</li>
</ul>
<h4 id="css">CSS</h4>
<ul>
<li><a href="http://csstidy.sourceforge.net/">CSSTidy</a> - Opensource
CSS parser and optimiser available as executeable file which can be
controlled by command line and as PHP script.</li>
</ul>
<h4 id="fortran">Fortran</h4>
<ul>
<li><a href="ftp://ftp.ifremer.fr/ifremer/fortran90/">Fortran 90 PPR</a>
- Fortran 90 preprocessor and formatter written in Fortran 90.</li>
</ul>
<h4 id="haskell">Haskell</h4>
<ul>
<li><a href="https://github.com/chrisdone/hindent">hindent</a> -
Extensible Haskell pretty printer available both as a library and an
executable.</li>
</ul>
<h4 id="html">HTML</h4>
<ul>
<li><a href="http://www.digital-mines.com/htb/">HTB</a> - Command-line
utility to reformat HTML/XML/XSLT source code with an array of user
specified options.</li>
<li><a href="http://tidy.sourceforge.net/">Tidy</a> - Free-standing C
library</li>
</ul>
<h4 id="java">Java</h4>
<ul>
<li><a href="https://github.com/google/google-java-format">Google Java
Format</a> - google-java-format is a program that reformats Java source
code to comply with Google Java Style.</li>
<li><a href="http://notzippy.github.io/JALOPY2-MAIN/">JALOPY</a> -
Source code formatting tool for the Sun Java Programming Language.</li>
<li><a href="http://www.jindent.com/">Jindent</a> - Commercial source
code formatter for the programming languages Java, C and C++</li>
</ul>
<h4 id="javascript">JavaScript</h4>
<ul>
<li><a href="https://beautifier.io/">beautifier.io</a> - Online
JavaScript Beautifier</li>
</ul>
<h4 id="jsp">JSP</h4>
<ul>
<li><a href="http://jsppp.sourceforge.net/">JSPPP</a> - Indentor for JSP
files in various styles.</li>
</ul>
<h4 id="net">.NET</h4>
<ul>
<li><a href="http://www.narrange.net/">NArrange</a> - Code beautifier
that automatically organizes code members and elements within .NET
classes.</li>
</ul>
<h4 id="perl">Perl</h4>
<ul>
<li><a href="http://perltidy.sourceforge.net/">PerlTidy</a> - Perl
script which indents and reformats Perl scripts.</li>
</ul>
<h4 id="php">PHP</h4>
<ul>
<li><a
href="http://pear.php.net/package/PHP_Beautifier">PHP_Beautifier</a> -
Beautifier for PHP</li>
<li><a
href="http://www.waterproof.fr/products/phpCodeBeautifier/">phpCB</a> -
Tool available as a GUI, command line and an integrated tool of
PHPEdit.</li>
<li><a href="http://sourceforge.net/projects/phpstylist/">phpStylist</a>
- Formatter with customizable options.</li>
</ul>
<h4 id="plsql">PL/SQL</h4>
<ul>
<li><a href="http://psti.equinoxbase.com/">Pl/Sql tidy</a> - Program to
tidy, beautify or format Pl/Sql code in a batch file or Dos prompt.</li>
<li><a href="http://architectshack.com/PoorMansTSqlFormatter.ashx">Poor
Mans T-SQL Formatter</a> - .Net 2.0 library with demo UI, command-line
bulk formatter, SSMS/Visual Studio add-in, notepad++ plugin, winmerge
plugin, and web service for reformatting and coloring T-SQL code to the
users preferences.</li>
</ul>
<h4 id="python">Python</h4>
<ul>
<li><a href="https://github.com/ambv/black">black</a> - The
uncompromising Python code formatter</li>
<li><a
href="http://svn.python.org/projects/python/trunk/Tools/scripts/pindent.py">pindent</a>
- Adds comments when blocks are closed, or can properly indent code if
comments are put in.</li>
<li><a href="https://github.com/google/yapf">yapf</a> - A formatter for
Python files.</li>
</ul>
<h4 id="ruby">Ruby</h4>
<ul>
<li><a href="http://www.arachnoid.com/ruby/rubyBeautifier.html">Ruby
Script Beautifier</a> - Beautifier written in Ruby.</li>
</ul>
<h4 id="shell">Shell</h4>
<ul>
<li><a href="http://www.bolthole.com/AWK.html">ShellIndent</a> - Indent
formatting program for .sh scripts.</li>
</ul>
<h4 id="vbs">VBS</h4>
<ul>
<li><a href="http://www.daansystems.com/vbsbeaut/">VBSBeautifier</a> -
Beautifier for ASP and clientside VBScript files.</li>
</ul>
<h4 id="xml">XML</h4>
<ul>
<li><a href="http://xmlindent.sourceforge.net/">XML Indent</a> - XML
stream reformatter written in ANSI C.</li>
</ul>
<p><a
href="https://github.com/rishirdua/awesome-code-formatters">codeformatters.md
Github</a></p>