public function pygmentize($path, $language)
    {
        $process = new Process(sprintf('pygmentize -f html -l %s %s', $language, $path));

        $process->run();

        if (!$process->isSuccessful()) {
            throw new RuntimeException($process->getErrorOutput());
        }

        return trim($process->getOutput());
    }
public function pygmentize($path, $language)
    {
        $process = new Process(sprintf('pygmentize -f html -l %s %s', $language, $path));

        $process->run();

        if (!$process->isSuccessful()) {
            throw new RuntimeException($process->getErrorOutput());
        }

        return trim($process->getOutput());
    }
public function pygmentize ( $ path , $ language ) { $ process = new Process ( sprintf ( 'pygmentize -f html -l %s %s' , $ language , $ path ) ) ; $ process -> run ( ) ; if ( ! $ process -> isSuccessful ( ) ) { throw new RuntimeException ( $ process -> getErrorOutput ( ) ) ; } return trim ( $ process -> getOutput ( ) ) ; }
Run 'pygmentize' command on the given file

@param string $path
@param string $language

@return string
Run pygmentize command on the given file