Pretty Printer Library.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 07 Feb 2012 10:39:24 +0200
changeset 1209 bb6eaf58a856
parent 1208 e0471b6b99d2
child 1210 ed0ee1b5343c
Pretty Printer Library.
prettyprint.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/prettyprint.rst	Tue Feb 07 10:39:24 2012 +0200
@@ -0,0 +1,80 @@
+.. -*- coding: utf-8 -*-
+
+===========================
+ Pretty print source code.
+===========================
+.. contents::
+
+Code formatter, beautifier, pretty printer.
+
+xml.
+====
+
+tidy.
+-----
+::
+
+  $ tidy -xml -i -utf8 -o out.xml in.xml
+
+or in Emacs::
+
+  C-x h C-x <RET> c utf-8 <RET> C-u M-| tidy -q -xml -i -utf8 -
+
+  http://tidy.sourceforge.net
+                Home page.
+  http://www.emacswiki.org/cgi-bin/wiki/tidy.el
+                Emacs bindings.
+
+xmllint.
+--------
+::
+
+  $ xmllint --format file.xml
+
+or in Emacs:
+
+  : C-x h C-u M-| xmllint --format - <RET>
+
+Emacs and nxml.
+---------------
+
+You need introduce line-breaks and then::
+
+  C-x h C-M-\
+
+xmlindent.
+----------
+
+  http://xmlindent.sourceforge.net/
+
+c/c++/java/c#.
+--------------
+
+Artistic Style, astyle.
+-----------------------
+
+A Free, Fast and Small Automatic Formatter for C, C++, C#, and Java Source Code.
+
+There are exist package for Cygwin, Debian.
+
+  http://astyle.sourceforge.net/
+                home page
+
+Uncrustify.
+-----------
+
+Source Code Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA.
+
+Exist package for Windows (binary from home page), Debian.
+
+  http://uncrustify.sourceforge.net/
+                home page
+
+jpplib.
+-------
+
+Pretty Printer Library.
+
+  http://jpplib.sourceforge.net/
+                Home page.
+