PygmentsElephant/PygmentizeBinary.php
public function execute(Pygmentize $pygmentize, array $options)
    {
        $cmd = sprintf('-f %s -l %s -O encoding=%s %s %s',
            $pygmentize->getFormat(),
            $pygmentize->getLexer(),
            mb_detect_encoding(file_get_contents($pygmentize->getSubject())),
            $this->generateOptions($options),
            $pygmentize->getSubject()
        );

        return $this->executeCommand($cmd);
    }
public function execute(Pygmentize $pygmentize, array $options)
    {
        $cmd = sprintf('-f %s -l %s -O encoding=%s %s %s',
            $pygmentize->getFormat(),
            $pygmentize->getLexer(),
            mb_detect_encoding(file_get_contents($pygmentize->getSubject())),
            $this->generateOptions($options),
            $pygmentize->getSubject()
        );

        return $this->executeCommand($cmd);
    }
public function execute ( Pygmentize $ pygmentize , array $ options ) { $ cmd = sprintf ( '-f %s -l %s -O encoding=%s %s %s' , $ pygmentize -> getFormat ( ) , $ pygmentize -> getLexer ( ) , mb_detect_encoding ( file_get_contents ( $ pygmentize -> getSubject ( ) ) ) , $ this -> generateOptions ( $ options ) , $ pygmentize -> getSubject ( ) ) ; return $ this -> executeCommand ( $ cmd ) ; }
execute a call to pygmentize binary

@param Pygmentize $pygmentize
@param array $options

@return string
execute a call to pygmentize binary