Home
Download
The Online Lint
Documentation
News
Contact

 

SourceForge.net Logo
SourceForge Project

Running from Your PHP Website

The JavaScript Lint source package (available from the download page) includes a _jsl_online.php file that allows PHP websites to integrate with JavaScript Lint. This script is used to power the online lint.

The following example usage is included in the PHP script:

require_once("_jsl_online.php");
$engine = new JSLEngine('.priv/jsl', '.priv/jsl.server.conf');
$result = $engine->Lint($code);
if ($result === true)
   OutputLintHTML($engine);
else
   echo '<b>' . htmlentities($result) . '</b>';


JavaScript Lint is sponsored by
Matthias Miller.