Lines Matching defs:style

100 // Link style constants
330 * The style of the header block
336 * The style of the footer block
410 * The overall style for this code block
416 * The style for the actual code
834 * when this object is parsed. The style should be a
837 * @param string $style The overall style for the outputted code block
841 public function set_overall_style($style, $preserve_defaults = false) {
843 $this->overall_style = $style;
845 $this->overall_style .= $style;
851 * class can then be used in a stylesheet to style this object's
863 * be used in a stylesheet to style this object's output
884 * Sets the style for the actual code. This should be a string
889 * Note: Use this method to override any style changes you made to
891 * code will have the same style as the line number! Consult the
894 * @param string $style The style to use for actual code
898 public function set_code_style($style, $preserve_defaults = false) {
900 $this->code_style = $style;
902 $this->code_style .= $style;
909 * @param string $style1 The style for the line numbers that are "normal"
910 * @param string|boolean $style2 If a string, this is the style of the line
985 * Sets the style for a keyword group. If $preserve_defaults is
990 * @param string $style The style to make the keywords
995 public function set_keyword_group_style($key, $style, $preserve_defaults = false) {
996 //Set the style for this keyword group
1000 $this->language_data['STYLES']['KEYWORDS'][$_key] = $style;
1002 $this->language_data['STYLES']['KEYWORDS'][$_key] .= $style;
1007 $this->language_data['STYLES']['KEYWORDS'][$key] = $style;
1009 $this->language_data['STYLES']['KEYWORDS'][$key] .= $style;
1036 * @param string $style The style to make the comments
1041 public function set_comments_style($key, $style, $preserve_defaults = false) {
1045 $this->language_data['STYLES']['COMMENTS'][$_key] = $style;
1047 $this->language_data['STYLES']['COMMENTS'][$_key] .= $style;
1052 $this->language_data['STYLES']['COMMENTS'][$key] = $style;
1054 $this->language_data['STYLES']['COMMENTS'][$key] .= $style;
1075 * @param string $style The style to make the escape characters
1078 * @param int $group Tells the group of symbols for which style should be set.
1081 public function set_escape_characters_style($style, $preserve_defaults = false, $group = 0) {
1083 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] = $style;
1085 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] .= $style;
1107 * @param string $style The style to make the brackets
1113 public function set_brackets_style($style, $preserve_defaults = false) {
1115 $this->language_data['STYLES']['BRACKETS'][0] = $style;
1117 $this->language_data['STYLES']['BRACKETS'][0] .= $style;
1140 * @param string $style The style to make the symbols
1143 * @param int $group Tells the group of symbols for which style should be set.
1146 public function set_symbols_style($style, $preserve_defaults = false, $group = 0) {
1147 // Update the style of symbols
1149 $this->language_data['STYLES']['SYMBOLS'][$group] = $style;
1151 $this->language_data['STYLES']['SYMBOLS'][$group] .= $style;
1156 $this->set_brackets_style ($style, $preserve_defaults);
1179 * @param string $style The style to make the escape characters
1182 * @param int $group Tells the group of strings for which style should be set.
1185 public function set_strings_style($style, $preserve_defaults = false, $group = 0) {
1187 $this->language_data['STYLES']['STRINGS'][$group] = $style;
1189 $this->language_data['STYLES']['STRINGS'][$group] .= $style;
1208 * @param string $style The style to make the script blocks
1211 * @param int $group Tells the group of script blocks for which style should be set.
1214 public function set_script_style($style, $preserve_defaults = false, $group = 0) {
1215 // Update the style of symbols
1217 $this->language_data['STYLES']['SCRIPT'][$group] = $style;
1219 $this->language_data['STYLES']['SCRIPT'][$group] .= $style;
1228 * @param string $style The style to make the numbers
1231 * @param int $group Tells the group of numbers for which style should be set.
1234 public function set_numbers_style($style, $preserve_defaults = false, $group = 0) {
1236 $this->language_data['STYLES']['NUMBERS'][$group] = $style;
1238 $this->language_data['STYLES']['NUMBERS'][$group] .= $style;
1260 * @param string $style The style to make the methods
1265 public function set_methods_style($key, $style, $preserve_defaults = false) {
1267 $this->language_data['STYLES']['METHODS'][$key] = $style;
1269 $this->language_data['STYLES']['METHODS'][$key] .= $style;
1288 * @param string $key The style to make the regular expression matches
1289 * @param boolean $style Whether to merge the new styles with the old or just
1295 public function set_regexps_style($key, $style, $preserve_defaults = false) {
1297 $this->language_data['STYLES']['REGEXPS'][$key] = $style;
1299 $this->language_data['STYLES']['REGEXPS'][$key] .= $style;
1709 * Sets the style for the header content
1711 * @param string $style The style for the header content
1714 public function set_header_content_style($style) {
1715 $this->header_content_style = $style;
1719 * Sets the style for the footer content
1721 * @param string $style The style for the footer content
1724 public function set_footer_content_style($style) {
1725 $this->footer_content_style = $style;
1755 * @param int $type A constant that specifies what state the style is being
1813 * The extra style parameter was added in 1.0.7.21.
1817 * @param string $style A string specifying the style to use for this line.
1818 * If null is specified, the default style is used.
1824 public function highlight_lines_extra($lines, $style = null) {
1828 $this->highlight_lines_extra($line, $style);
1835 //Decide on which style to use
1836 if ($style === null) { //Check if we should use default style
1838 } elseif ($style === false) { //Check if to remove this line
1842 $this->highlight_extra_lines_styles[$lines] = $style;
1848 * Sets the style for extra-highlighted lines
1850 * @param string $styles The style for extra-highlighted lines
1917 * stylesheet generators as they rely on some style information being
1923 //Build the style cache needed to highlight numbers appropriate
1941 //Rearrange style indices if required ...
2023 //Now we have an array with each possible symbol as the key and the style as the actual data.
2024 //This way we can set the correct style just the moment we highlight ...
2054 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#91;|>',
2055 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#93;|>',
2056 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#40;|>',
2057 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#41;|>',
2058 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#123;|>',
2059 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#125;|>',
2076 //Check if the style rearrangements have been processed ...
2077 //This also does some preprocessing to check which style groups are useable ...
2120 //specific style or an string denoting a regexp given its index.
2459 $attributes = ' style="' . $this->language_data['STYLES']['SCRIPT'][$script_key] . '"';
2560 // Hand out the correct style information for this string
2572 $string_attributes = ' style="' . $this->language_data['STYLES']['STRINGS'][$string_key] . '"';
2654 //Get the style for this escaped char ...
2656 $escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR'][0] . '"';
2661 //Add the style for the escape char ...
2710 //Get the style for this escaped char ...
2712 $escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR'][$escape_key] . '"';
2717 //Add the style for the escape char ...
2747 $string_attributes = ' style="' . $this->language_data['STYLES']['STRINGS']['HARD'] . '"';
2748 $escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR']['HARD'] . '"';
2861 $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS'][$comment['key']] . '"';
2928 $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS']['MULTI'] . '"';
2935 $attributes = ' style="' . $this->important_styles . '"';
3035 $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS'][$comment_key] . '"';
3302 // before: "' style=\"' . call_user_func(\"$func\", '\\1') . '\"\\1|>'",
3303 return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $matches[1]) . '"'. $matches[1] . '|>';
3473 $attributes = ' style="' .
3487 //Get the appropriate style ...
3488 //Checking for unset styles is done by the style cache builder ...
3490 $attributes = ' style="' . $this->language_data['STYLES']['NUMBERS'][$id] . '"';
3523 $attributes = ' style="' . $this->language_data['STYLES']['METHODS'][$key] . '"';
3582 $symbol_hl .= '<| style="' . $this->language_data['STYLES']['SYMBOLS'][$old_sym] . '">';
3598 $symbol_hl = '<| style="' . $this->language_data['STYLES']['SYMBOLS'][0] . '">';
3614 // Add class/style for regexps
3624 $attributes = ' style="' . $this->language_data['STYLES']['REGEXPS'][$key] . '"';
3646 $stuff_to_parse = str_replace('<|UR1|', '<a' . $this->link_target . ' style="' . $this->link_styles[GESHI_LINK] . '" href=', $stuff_to_parse);
3802 $style_filename = substr($file_name, 0, -4) . '.style.php';
3809 //Read the Style Information from the style file
3857 // markup to style them (otherwise we don't need to do anything)
3877 // Set the attributes to style the line
3883 //$attr = ' style="' . $this->line_style2 . '"';
3884 $attrs['style'][] = $this->line_style2;
3885 // This style "covers up" the special styles set for special lines
3888 $def_attr = ' style="' . $this->code_style . '"';
3896 //$attr = ' style="' . $this->line_style1 . '"';
3897 $attrs['style'][] = $this->line_style1;
3898 $def_attr = ' style="' . $this->code_style . '"';
3928 array_push($attrs['style'], $this->get_line_style($i));
3946 $attributes = ' style="'. $this->code_style .'"';
3955 $attrs = ' style="'. $this->table_linenumber_style .'"';
3968 // Set the attributes to style the line
3972 // This style "covers up" the special styles set for special lines
3975 $parsed_code .= '<span style="display:block;' . $this->line_style2 . '">'
3976 .'<span style="' . $this->code_style .'">';
3989 $parsed_code .= "<span style=\"display:block;" . $this->get_line_style($i) . "\">";
4016 // Set the attributes to style the line
4020 // This style "covers up" the special styles set for special lines
4023 $parsed_code .= '<span style="display:block;' . $this->line_style2 . '">'
4024 .'<span style="' . $this->code_style .'">';
4037 $parsed_code .= "<span style=\"display:block;" . $this->get_line_style($i) . "\">";
4075 * we're using classes or not. Same with style
4087 $attributes .= ' style="' . $this->overall_style . '"';
4107 $attr = " style=\"{$this->header_content_style}\"";
4161 $attr = " style=\"{$this->footer_content_style}\"";
4244 * htmlspecialchars(), with the same default for quote style; however, there
4349 //Check if the style rearrangements have been processed ...
4350 //This also does some preprocessing to check which style groups are useable ...
4403 // either the style is empty and thus no selector is needed
4405 foreach ($this->link_styles as $key => $style) {
4406 if ($style != '') {
4409 $stylesheet .= "{$selector}a:link {{$style}}\n";
4412 $stylesheet .= "{$selector}a:hover {{$style}}\n";
4415 $stylesheet .= "{$selector}a:active {{$style}}\n";
4418 $stylesheet .= "{$selector}a:visited {{$style}}\n";
4446 // If there is a style set for fancy line numbers, echo it out
4539 * Get's the style that is used for the specified line
4545 $style = null;
4547 $style = $this->highlight_extra_lines_styles[$line];
4548 } else { // if no "extra" style assigned
4549 $style = $this->highlight_extra_lines_style;
4552 return $style;