Lines Matching refs:opts
80 $opts = [];
103 $opts = array_combine($keys, $values);
105 return $opts;
113 * @param array $opts GeSHi options
117 private function strGeshiOptions(array $opts=[])
120 if (isset($opts['enable_line_numbers']) && $opts['enable_line_numbers'] == 0) {
123 if (isset($opts['start_line_numbers_at']) && $opts['start_line_numbers_at'] > 0) {
124 $option = $option.':'.$opts['start_line_numbers_at'];
138 $opts = [];
145 $opts['linenums'] = ('no' == $m[1][0] ?? '') ? 'linenums:0' : $m[0][0];
147 $opts['linenums'] = $this->getConf('linenums') ? 'linenums' : '';
151 $opts['language'] = $m[0][0];
155 $opts['language'] = $lang ? 'lang-'.$lang : '';
157 return $opts;
190 $opts['prettify'] = 'prettyprint';
191 $opts += $this->getPrettifierOptions($params);
192 $params= implode(' ', $opts);