You are here

function geshifilter_process in GeSHi Filter for syntax highlighting 5.2

Same name and namespace in other branches
  1. 6 geshifilter.pages.inc \geshifilter_process()

General geshifilter processing function

2 calls to geshifilter_process()
geshinode_view in ./geshinode.module
Implementation of hook_view()
_geshifilter_replace_callback in ./geshifilter.pages.inc
preg_replace_callback callback

File

./geshifilter.pages.inc, line 283

Code

function geshifilter_process($source_code, $lang, $line_numbering = 0, $linenumbers_start = 1, $inline_mode = FALSE) {

  // 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);
  }
}