public static function getCode($path, $line)
    {
        $snippet = 7;
        $code = str_replace('>', '&gt', str_replace('<', '&lt;', file_get_contents($path)));
        $codesplit = explode("\n", $code);
        $lines = count($codesplit);
        $from = $line < $snippet ? 0 : $line - $snippet;
        $to = $lines < $line + $snippet ? $lines + 1 : $line + $snippet;
        $new = array();
        for ($i = $from; $i < $to - 1; $i++) {
            if ($i + 1 == $line) {
                $new[] = '<span class="highlight">' . ($i + 1) . ' ' . $codesplit[$i] . '</span>';
            } else {
                $new[] = ($i + 1) . ' ' . $codesplit[$i];
            }
        }
        return '<pre><code>' . implode("\n", $new) . "\n</code></pre>";
    }