Lines Matching +full:background +full:- +full:colors +(+path:plugin +path:emphasis) -(+path:plugin +path:emphasis +path:lang)
22 'background-color' => array()
33 * @return int Sort order - Low numbers go before high numbers
47 * @return string normal|block|stack - how this plugin is handled regarding paragraphs
59 $this->Lexer->addEntryPattern(':{2,}(?=.*?:{2,})', $mode, 'plugin_emphasis_font');
63 $this->Lexer->addExitPattern(':{2,}', 'plugin_emphasis_font');
80 $colortype = ($match[0] == ':' ? 'color':'background-color');
83 if(empty($this->colorlist[$colortype])) {
84 $colors = explode(',', $this->getConf($colortype.'s'));
85 foreach($colors as $color) {
89 if(preg_match('/[^A-Fa-f0-9]/', $color)) continue;
93 $this->colorlist[$colortype][] = '#'.$color;
98 $maxdegree = count($this->colorlist[$colortype]);
99 $data['degree'] = strlen($match) - 1;
105 $data['color'] = $this->colorlist[$colortype][$data['degree'] - 1];
112 $handler->addCall('cdata', array($match), $pos);
137 $renderer->doc .= '<span class="plugin_emphasis" style="'.$data['colortype'].': '.$data['color'].';">';
141 $renderer->doc .= '</span>';
150 $renderer->_odtSpanOpenUseCSSStyle ($data['colortype'].': '.$data['color'].';font-weight:bold;');
152 $renderer->_odtSpanOpenUseCSS (NULL, 'class="plugin_emphasis" style="'.$data['colortype'].': '.$data['color'].';"');
158 $renderer->_odtSpanClose();