public function highlight($value, $language)
    {
        $path = tempnam($this->tmp, 'pyg');

        if ($language === 'php' && substr($value, 0, 5) !== '<?php') {
            $value = '<?php ' . PHP_EOL . $value;
        }

        $this->files->dumpFile($path, $value);

        $value = $this->pygmentize($path, $language);

        unlink($path);

        if (preg_match('#^<div class="highlight"><pre>#', $value) && preg_match('#</pre></div>$#', $value)) {
            return substr($value, 28, strlen($value) - 40);
        }

        return $value;
    }