author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:41:52 +0200 | |
changeset 1903 | 901e7394849f |
parent 1334 | 9bf0d5a1f0cf |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1326
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1326
diff
changeset
|
2 |
.. include:: HEADER.rst |
1209 | 3 |
|
4 |
=========================== |
|
5 |
Pretty print source code. |
|
6 |
=========================== |
|
7 |
.. contents:: |
|
8 |
||
1326
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
9 |
About pretty printing. |
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
10 |
====================== |
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
11 |
|
1209 | 12 |
Code formatter, beautifier, pretty printer. |
13 |
||
1326
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
14 |
http://en.wikipedia.org/wiki/Pretty-printer |
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
15 |
Wiki article. |
8aac6cb8518d
About pretty printing.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1323
diff
changeset
|
16 |
|
1209 | 17 |
xml. |
18 |
==== |
|
19 |
||
20 |
tidy. |
|
21 |
----- |
|
22 |
:: |
|
23 |
||
24 |
$ tidy -xml -i -utf8 -o out.xml in.xml |
|
25 |
||
26 |
or in Emacs:: |
|
27 |
||
28 |
C-x h C-x <RET> c utf-8 <RET> C-u M-| tidy -q -xml -i -utf8 - |
|
29 |
||
30 |
http://tidy.sourceforge.net |
|
31 |
Home page. |
|
32 |
http://www.emacswiki.org/cgi-bin/wiki/tidy.el |
|
33 |
Emacs bindings. |
|
34 |
||
35 |
xmllint. |
|
36 |
-------- |
|
37 |
:: |
|
38 |
||
39 |
$ xmllint --format file.xml |
|
40 |
||
41 |
or in Emacs: |
|
42 |
||
43 |
: C-x h C-u M-| xmllint --format - <RET> |
|
44 |
||
45 |
Emacs and nxml. |
|
46 |
--------------- |
|
47 |
||
48 |
You need introduce line-breaks and then:: |
|
49 |
||
50 |
C-x h C-M-\ |
|
51 |
||
52 |
xmlindent. |
|
53 |
---------- |
|
54 |
||
55 |
http://xmlindent.sourceforge.net/ |
|
56 |
||
57 |
c/c++/java/c#. |
|
1323
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
58 |
============== |
1209 | 59 |
|
60 |
Artistic Style, astyle. |
|
61 |
----------------------- |
|
62 |
||
63 |
A Free, Fast and Small Automatic Formatter for C, C++, C#, and Java Source Code. |
|
64 |
||
65 |
There are exist package for Cygwin, Debian. |
|
66 |
||
67 |
http://astyle.sourceforge.net/ |
|
68 |
home page |
|
69 |
||
70 |
Uncrustify. |
|
71 |
----------- |
|
72 |
||
73 |
Source Code Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA. |
|
74 |
||
75 |
Exist package for Windows (binary from home page), Debian. |
|
76 |
||
77 |
http://uncrustify.sourceforge.net/ |
|
78 |
home page |
|
79 |
||
80 |
jpplib. |
|
81 |
------- |
|
82 |
||
83 |
Pretty Printer Library. |
|
84 |
||
85 |
http://jpplib.sourceforge.net/ |
|
86 |
Home page. |
|
87 |
||
1323
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
88 |
Perl. |
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
89 |
===== |
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
90 |
|
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
91 |
http://perltidy.sourceforge.net/ |
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
92 |
Home page. |
1d94538d70c9
http://perltidy.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1209
diff
changeset
|
93 |