You are here

function _codefilter_tips in Code Filter 7

Implements hook_filter_FILTER_tips().

1 string reference to '_codefilter_tips'
codefilter_filter_info in ./codefilter.module
Implements hook_filter_info().

File

./codefilter.module, line 205
Text filter for highlighting PHP source code.

Code

function _codefilter_tips($format, $long = FALSE) {
  if ($long) {
    return t('To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.');
  }
  else {
    return t('You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.');
  }
}