src/geshi.php
public function set_line_style($style1, $style2 = '', $preserve_defaults = false) {
        //Check if we got 2 or three parameters
        if (is_bool($style2)) {
            $preserve_defaults = $style2;
            $style2 = '';
        }

        //Actually set the new styles
        if (!$preserve_defaults) {
            $this->line_style1 = $style1;
            $this->line_style2 = $style2;
        } else {
            $this->line_style1 .= $style1;
            $this->line_style2 .= $style2;
        }
    }
public function set_line_style($style1, $style2 = '', $preserve_defaults = false) {
        //Check if we got 2 or three parameters
        if (is_bool($style2)) {
            $preserve_defaults = $style2;
            $style2 = '';
        }

        //Actually set the new styles
        if (!$preserve_defaults) {
            $this->line_style1 = $style1;
            $this->line_style2 = $style2;
        } else {
            $this->line_style1 .= $style1;
            $this->line_style2 .= $style2;
        }
    }
public function set_line_style ( $ style1 , $ style2 = '' , $ preserve_defaults = false ) { //Check if we got 2 or three parameters if ( is_bool ( $ style2 ) ) { $ preserve_defaults = $ style2 ; $ style2 = '' ; } //Actually set the new styles if ( ! $ preserve_defaults ) { $ this -> line_style1 = $ style1 ; $ this -> line_style2 = $ style2 ; } else { $ this -> line_style1 .= $ style1 ; $ this -> line_style2 .= $ style2 ; } }
Sets the styles for the line numbers.

@param string         $style1 The style for the line numbers that are "normal"
@param string|boolean $style2 If a string, this is the style of the line
numbers that are "fancy", otherwise if boolean then this
defines whether the normal styles should be merged with the
new normal styles or not
@param boolean        $preserve_defaults If set, is the flag for whether to merge the "fancy"
styles with the current styles or not
@since 1.0.2
Sets the styles for the line numbers .