js-beautify/qtscript
2010-10-15 01:32:47 +08:00
..
jsbeautify.cpp QtScript indent 2010-10-15 01:32:47 +08:00
jsbeautify.pro Move qtscript to its folder, add small readme 2010-09-20 13:40:16 +03:00
jsbeautify.qrc Fix the path to beautify.js. 2010-10-14 02:25:54 +08:00
readme.txt Some info on how to built the Qt Script-based driver. 2010-09-21 00:25:52 +08:00

A small qtscript project to invoke jsbeautify.js from the command line.

An alternative to the rhino version.

Requirement
-----------

Qt 4.6 is later is needed to build.

For OpenSUSE, install it using 'sudo zypper in libqt4-devel'.
For Ubuntu/Debian, install it using 'sudo apt-get install libqt4-dev'.

For other distributions and/or operating systems, download the binary for free
from http://qt.nokia.com/downloads.

Build
-----

qmake && make

(On some Ubuntu/Debian, change qmake to qmake-qt4).

Use
---

    jsbeautify source-file

The content of source-file will be read, beautified, and printed to the console.