# HG changeset patch # User Oleksandr Gavenko # Date 1269457263 -7200 # Node ID 35f118ae3838203e85e799a165e382a7d7fac21c # Parent 481845507d3d5c5be0c49ed80c8a5e100d77b6cf# Parent 5a5b41d76f037c8eb7ae70dc5896b04e9d0efc54 Automated merge with file:///cygdrive/e/srv/hg/admin-doc diff -r 481845507d3d -r 35f118ae3838 cmd.rst --- a/cmd.rst Wed Mar 24 15:51:36 2010 +0200 +++ b/cmd.rst Wed Mar 24 21:01:03 2010 +0200 @@ -1,5 +1,32 @@ -*- outline -*- +* Quoting. + + * Arguments are delimited by white space, which is either a space or a tab. + * A string surrounded by double quotation marks is interpreted as a single + argument. + * A double quotation mark preceded by a backslash, \", is interpreted as a + literal double quotation mark. + * Backslashes are interpreted literally, unless they immediately precede a + double quotation mark. + * If an even number of backslashes is followed by a double quotation mark, + then one backslash (\) is placed in the argv array for every pair of + backslashes (\\), and the double quotation mark (") is interpreted as a + string delimiter. + * If an odd number of backslashes is followed by a double quotation mark, + then one backslash (\) is placed in the argv array for every pair of + backslashes (\\) and the double quotation mark is interpreted as an escape + sequence by the remaining backslash, causing a literal double quotation + mark (") to be placed in argv. + * In double quote mark need surround such chars: + & < > [ ] { } ^ = ; ! ' + , ` ~ + Also all this char can be escaped by ^ char. + * Long line can be truncated by ^ char, in this case trailing white spaces + not allowed. + + http://msdn.microsoft.com/en-us/library/ms880421.aspx + Parsing C Command-Line Arguments + * Variables. Variable name start with letter and underscore, next chars can be letter, diff -r 481845507d3d -r 35f118ae3838 prettyprint.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prettyprint.rst Wed Mar 24 21:01:03 2010 +0200 @@ -0,0 +1,27 @@ +-*- mode: outline; coding: utf-8 -*- + +* xml. + +** tidy. + + $ tidy -xml -i -utf8 -o out.xml in.xml + +or in Emacs C-x h C-x c utf-8 C-u M-| tidy -q -xml -i -utf8 - + + http://tidy.sourceforge.net + home page + http://www.emacswiki.org/cgi-bin/wiki/tidy.el + +** xmllint. + + $ xmllint --format file.xml + +or in Emacs: C-x h C-u M-| xmllint --format - + +** Emacs and nxml. + +You need introduce line-breaks and then C-x h C-M-\. + +** xmlindent. + + http://xmlindent.sourceforge.net/ \ No newline at end of file