protected function parsePygmentsOptions(array $options, $code)
    {
        $pygmentsOptions = ['encoding' => 'utf-8'];

        if (!empty($options['linenos']) && $options['linenos'] === true) {
            $pygmentsOptions['linenos'] = 'table';
        }

        if (!empty($options['start'])) {
            $pygmentsOptions['linenostart'] = $options['start'];
        }

        if (!empty($options['mark'])) {
            $pygmentsOptions['hl_lines'] = $this->parseMarks($options['mark']);
        }

        if (!empty($options['lang'])
            && strtolower($options['lang']) === 'php'
            && stripos($code, '<?php') === false
        ) {
            $pygmentsOptions['startinline'] = 'True';
        }

        return $pygmentsOptions;
    }