changeset 572:bd21046a8a18

[add] Feature Request ID 1867563 : Added support for the indenter XML Indent. On Windows I needed to add the line "#include <getopt.h>" to the file "main.c" to be able to compile it. http://universalindent.sf.net/issue/1867563 git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@816 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Fri, 10 Oct 2008 13:40:45 +0000
parents f401efb5080b
children 34b7ddedfcb5
files buildLinuxRelease.sh buildMacRelease.sh buildRelease.sh buildwin32release_gcc.bat indenters/uigui_xmlindent.ini
diffstat 5 files changed, 67 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/buildLinuxRelease.sh	Fri Oct 10 12:01:30 2008 +0000
+++ b/buildLinuxRelease.sh	Fri Oct 10 13:40:45 2008 +0000
@@ -73,6 +73,8 @@
 #cp ./indenters/uncrustify.cfg ./universalindentgui_linux32/indenters/
 cp ./indenters/uncrustify ./universalindentgui_linux32/indenters/
 cp ./indenters/uncrustify.txt ./universalindentgui_linux32/indenters/
+cp ./indenters/xmlindent ./UniversalIndentGUI_mac/indenters/
+cp ./indenters/xmlindent.txt ./UniversalIndentGUI_mac/indenters/
 
 cp ./indenters/uigui_*.ini ./universalindentgui_linux32/indenters/
 
--- a/buildMacRelease.sh	Fri Oct 10 12:01:30 2008 +0000
+++ b/buildMacRelease.sh	Fri Oct 10 13:40:45 2008 +0000
@@ -76,6 +76,8 @@
 #cp ./indenters/uncrustify.cfg ./UniversalIndentGUI_mac/indenters/
 cp ./indenters/uncrustify ./UniversalIndentGUI_mac/indenters/
 cp ./indenters/uncrustify.txt ./UniversalIndentGUI_mac/indenters/
+cp ./indenters/xmlindent ./UniversalIndentGUI_mac/indenters/
+cp ./indenters/xmlindent.txt ./UniversalIndentGUI_mac/indenters/
 
 cp ./indenters/uigui_*.ini ./UniversalIndentGUI_mac/indenters/
 
--- a/buildRelease.sh	Fri Oct 10 12:01:30 2008 +0000
+++ b/buildRelease.sh	Fri Oct 10 13:40:45 2008 +0000
@@ -293,7 +293,7 @@
 echo "Copying the indenter executable files to the target indenters dir"
 echo "-----------------------------------------------------------------"
 if [ "$targetSystem" = "macx" ]; then
-    indenters="astyle$ext astyle.html hindent hindent.html JsDecoder.js perltidy perltidy.html PerlTidyLib.pm phpStylist.php phpStylist.txt rbeautify.rb ruby_formatter.rb shellindent.awk uncrustify$ext uncrustify.txt"
+    indenters="astyle$ext astyle.html hindent hindent.html JsDecoder.js perltidy perltidy.html PerlTidyLib.pm phpStylist.php phpStylist.txt rbeautify.rb ruby_formatter.rb shellindent.awk uncrustify$ext uncrustify.txt xmlindent$ext xmlindent.txt"
 else
    indenters="astyle$ext astyle.html bcpp$ext bcpp.txt csstidy$ext gc.exe gc.txt htb.exe htb.html indent$ext indent.html tidy$ext tidy.html uncrustify$ext uncrustify.txt"
 fi
--- a/buildwin32release_gcc.bat	Fri Oct 10 12:01:30 2008 +0000
+++ b/buildwin32release_gcc.bat	Fri Oct 10 13:40:45 2008 +0000
@@ -54,7 +54,7 @@
 
 echo Copying the indenter executables and example file to the release indenters dir
 echo ------------------------------------------------------------------------------
-FOR %%A IN ( astyle.exe, astyle.html, bcpp.exe, bcpp.txt, csstidy.exe, gc.exe, gc.txt, indent.exe, libiconv-2.dll, libintl-2.dll, indent.html, JsDecoder.js, perltidy, PerlTidyLib.pm, phpStylist.php, phpStylist.txt, rbeautify.rb, ruby_formatter.rb, shellindent.awk, tidy.exe, tidy.html, uncrustify.exe, uncrustify.txt ) DO (
+FOR %%A IN ( astyle.exe, astyle.html, bcpp.exe, bcpp.txt, csstidy.exe, gc.exe, gc.txt, indent.exe, libiconv-2.dll, libintl-2.dll, indent.html, JsDecoder.js, perltidy, PerlTidyLib.pm, phpStylist.php, phpStylist.txt, rbeautify.rb, ruby_formatter.rb, shellindent.awk, tidy.exe, tidy.html, uncrustify.exe, uncrustify.txt, xmlindent.exe, xmlindent.txt ) DO (
     if not exist .\indenters\%%A (
         echo File .\indenters\%%A not found!
         goto ERROR
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/indenters/uigui_xmlindent.ini	Fri Oct 10 13:40:45 2008 +0000
@@ -0,0 +1,61 @@
+[header]
+categories=General
+cfgFileParameterEnding=cr
+configFilename=
+fileTypes=*.xml|*.xlst
+indenterFileName=xmlindent
+indenterName=XML Indent (XML, XSL)
+inputFileName=indentinput
+inputFileParameter=
+manual=http://universalindent.sf.net/indentermanuals/xmlindent.txt
+outputFileName=indentoutput
+outputFileParameter="-o "
+parameterOrder=poi
+showHelpParameter=-h
+stringparaminquotes=false
+useCfgFileParameter=none
+version=0.2.17
+
+[Indent level]
+CallName="-i "
+Category=0
+Description=<html>Indent using n spaces or tabs.</html>
+EditorType=numeric
+Enabled=false
+MaxVal=120
+MinVal=0
+ValueDefault=4
+
+[Use tabs]
+Category=0
+Description=<html>Use tabs instead of spaces for indent.</html>
+EditorType=boolean
+TrueFalse=-t|
+ValueDefault=0
+
+[Maximum wrap columns]
+CallName="-l "
+Category=0
+Description=<html>Maximum columns for line wrapping.</html>
+EditorType=numeric
+Enabled=false
+MaxVal=120
+MinVal=0
+ValueDefault=80
+
+[Suppress newline at pos]
+CallName="-n "
+Category=0
+Description=<html>Suppress newline at position.</html>
+EditorType=numeric
+Enabled=false
+MaxVal=120
+MinVal=0
+ValueDefault=80
+
+[Force newline]
+Category=0
+Description=<html>Force newline on elements without children.</html>
+EditorType=boolean
+TrueFalse=-f|
+ValueDefault=0