diff options
author | Jeremy Dorn <jeremy@jeremydorn.com> | 2013-03-14 22:40:54 -0700 |
---|---|---|
committer | Jeremy Dorn <jeremy@jeremydorn.com> | 2013-03-14 22:40:54 -0700 |
commit | 4142e37805f1042096231e3471171cadec48e2ca (patch) | |
tree | 05cd16d5d624e4a73c9da15b2f57a0c21110e8d1 /examples/cli.php | |
parent | 2724ddb7fb79851a557d868a688fc269960bff87 (diff) | |
download | sql-formatter-4142e37805f1042096231e3471171cadec48e2ca.zip sql-formatter-4142e37805f1042096231e3471171cadec48e2ca.tar.gz sql-formatter-4142e37805f1042096231e3471171cadec48e2ca.tar.bz2 |
Adding support for CLI syntax highlighting. Fixes #33
Diffstat (limited to 'examples/cli.php')
-rw-r--r-- | examples/cli.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/cli.php b/examples/cli.php new file mode 100644 index 0000000..558accf --- /dev/null +++ b/examples/cli.php @@ -0,0 +1,4 @@ +<?php +require_once(__DIR__.'/../lib/SqlFormatter.php'); + +echo SqlFormatter::format("-- This is a cool query\nSELECT `Column1`, 'test' FROM Mytable WHERE (id >= 8); (test))((("); |