VBScript beautifier beautifies VBScript files. You can use it for your ASP and clientside VBScript files.
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
keywords.txt
keywords_indent.txt
vbsbeaut.pl

README.md

vbsbeautifier

VBScript beautifier beautifies VBScript files.

Features

  • Works on server-side and client-side VBScript.
  • Skips HTML.
  • Properizes keywords.
  • Splits Dim statements.
  • Places spaces around operators.
  • Indents blocks.
  • Lines out assignment statements.
  • Removes redundant endlines.
  • Makes backups.

Instructions

This is the Perl source code of the beautifier. Run it from the commandline with parameters:

Usage: vbsbeaut [options] [files]

options:
 -i         Use standard input (as text filter).
 -s <val>   Uses spaces instead of tabs.
 -u         Make keywords uppercase.
 -l         Make keywords lowercase.
 -n         Don't change keywords.
 -d         Don't split Dim statements.

IMPORTANT: Make sure the VBScript code works before you try to beautify it.

You can also use the commandline utility vbsbeaut.exe. Enter vbsbeaut.exe without any arguments to see the commandline options.

You can add VBScript keywords to the keywords.txt file.