$geshi->set_header_type(GESHI_HEADER_PRE_TABLE); //$geshi->set_header_type(GESHI_HEADER_NONE); //=== // Select the line number method if ($lineNumbers == "true") { $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); //$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 5); } else { $geshi->enable_line_numbers(GESHI_NO_LINE_NUMBERS); } //=== // Set where to start counting line numbers from $geshi->start_line_numbers_at((int) $startLine); //=== // Set the tab processing (only used for non-pre header types) $geshi->set_use_language_tab_width(true); $geshi->set_tab_width(4); //=== // Set the base styles initGeshiStyles($geshi); //=== // Set the header and footer // Note: As of this moment the footer doesn't seem to work right with the table // output format so we are leaving it empty. $geshi->set_header_content($codeHeader); $geshi->set_footer_content(''); //=== // Process the code $highlightedCode = $geshi->parse_code(); //=== // Note: The old InsertCode plugin did some extra adjustments to the output string