lib/SqlFormatter.php
public static function highlight($string)
    {
        $tokens = self::tokenize($string);

        $return = '';

        foreach ($tokens as $token) {
            $return .= self::highlightToken($token);
        }

        return self::output($return);
    }
public static function highlight($string)
    {
        $tokens = self::tokenize($string);

        $return = '';

        foreach ($tokens as $token) {
            $return .= self::highlightToken($token);
        }

        return self::output($return);
    }
public static function highlight ( $ string ) { $ tokens = self :: tokenize ( $ string ) ; $ return = '' ; foreach ( $ tokens as $ token ) { $ return .= self :: highlightToken ( $ token ) ; } return self :: output ( $ return ) ; }
Add syntax highlighting to a SQL string

@param String $string The SQL string

@return String The SQL string with HTML styles applied
Add syntax highlighting to a SQL string