You are here

function geshifilter_process_sourcecode in GeSHi Filter for syntax highlighting 7

General geshifilter processing function for a chunk of source code.

1 call to geshifilter_process_sourcecode()
_geshifilter_replace_callback in ./geshifilter.pages.inc
preg_replace_callback callback.

File

./geshifilter.pages.inc, line 337

Code

function geshifilter_process_sourcecode($source_code, $lang, $line_numbering = 0, $linenumbers_start = 1, $inline_mode = FALSE, $title = NULL) {

  // process
  if ($lang == 'php' && variable_get('geshifilter_use_highlight_string_for_php', FALSE)) {
    return geshifilter_highlight_string_process($source_code, $inline_mode);
  }
  else {

    // process with GeSHi
    return geshifilter_geshi_process($source_code, $lang, $line_numbering, $linenumbers_start, $inline_mode, $title);
  }
}