Lines Matching refs:attr
89 list($attr, $content) = preg_split('/>/u', $match, 2);
91 $attr = trim($attr);
92 if ($attr == null) {
94 $attr = 'text';
95 } elseif (substr($attr, 0, 1) == ';') {
97 $attr = 'text'.$attr;
100 $attr = null;
102 return array($this->syntax, $attr, $content);
125 list($this->syntax, $attr, $content) = $data;
127 $title = $this->procTitle($attr);
128 $highlight = $this->procHighlight($attr);
129 …$renderer->doc .= '<pre class="brush: '.strtolower($attr.$highlight).'"'.$title.'>'.$renderer->_xm…
137 private function procTitle($attr) { argument
139 $title = trim(substr($attr, strpos($attr, ' ') + 1));
143 } elseif (preg_match('/title:/i', $attr)) {
145 $attr_array = explode(';', $attr);
149 $attr = implode(';', $not_title_array);
158 private function procHighlight($attr) { argument
162 if (preg_match('/highlight:/i', $attr, $matches)) {
164 $attr_array = explode(';', $attr);
168 $attr = implode(';', $not_highlight_array);