Click on "Pretty Print" button to beatify the text.
-
Click on "Minify" button to minify the text.
-Check "Preserve Comments" box if you want to keep comments. Or uncheck it
+
Click on "Minify" button to minify the text.
+
+Check "Preserve Comments" box if you want to keep comments. Or uncheck it
if you want do delete comments from minified XML or CSS. As JSON doesn't have
comments, the parameter doesn't affect jsonmin function
+
+Custom Indent Pattern:
+By default indent pattern is 4 white spaces. However, user can customize as pattern size
+as pattern characters.
+There are 2 ways to customize indent pattern:
+
+set number of white spaces as numeric value: 2, 4, etc.
+
+set desired pattern as a string, for example:
+'. . . .'
+'____'
+'- - - -'
+' ' - string of white spaces is also valid.
+
+Note:minify() function works only with whitespace pattern.
+
diff --git a/html/basicsql.html b/html/basicsql.html
index 6d03baf..605d922 100644
--- a/html/basicsql.html
+++ b/html/basicsql.html
@@ -10,14 +10,30 @@
vkBeautify SQL parser covers only SELECT statement as most javascript developers have deal with SELECT-based queries.
As SELECT syntax itself is very large and flexible, some complex nested statements can be formatted not as perfect as you'd
make it manually. But anyway, it helps you to save time on reading unformatted SQL statement.
+
+Note: "Preserve Comments" is not implemented for SQL part of the application.
Click on "Pretty Print" button to beatify the text.
-
Click on "Minify" button to minify the text (not sure if anybody needs it, but I keep it for consistency :)
-"Preserve Comments" is not implemented for SQL part of the application.
+
Click on "Minify" button to minify the text (not sure if anybody needs it, but I keep it for consistency :)
-
+Custom Indent Pattern:
+By default indent pattern is 4 white spaces. However, user can customize as pattern size
+as pattern characters.
+There are 2 ways to customize indent pattern:
+
+set number of white spaces as numeric value: 2, 4, etc.
+
+set desired pattern as a string, for example:
+'. . . .'
+'____'
+'- - - -'
+' ' - string of white spaces is also valid.
+
+Clear input to return to the default indent pattern.
+Note:minify() function works only with whitespace pattern.
+
diff --git a/html/doc.html b/html/doc.html
index 2ee1612..001aab3 100644
--- a/html/doc.html
+++ b/html/doc.html
@@ -15,30 +15,55 @@
+ @text - String; text to beatufy;
+
+
+ @indent_pattern - Integer | String;
+
+ Integer - number of white spaces;
+ String - character string to visualize indentation ( can also be a set of white spaces )
+
+
-
-
Parameters:
+
-
@text - String; XML, JSON, CSS or SQL text to beatufy;
-
@preserveComments - Bool; [optional] flag, which is used in minxml and mincss functions only.
- Set this flag to true to prevent removing comments from @text;
-
+ @text - String; text to minify;
+
+ @preserve_comments - Bool; [optional];
+ Set this flag to true to prevent removing comments from @text
+ ( minxml and mincss functions only. )
+
+
+