/[drupal]/contributions/modules/geshifilter/geshifilter.filtertips.inc
ViewVC logotype

Diff of /contributions/modules/geshifilter/geshifilter.filtertips.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7, Sat Jul 4 11:05:56 2009 UTC revision 1.8, Sun Jul 12 15:00:28 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: geshifilter.filtertips.inc,v 1.6 2009/07/04 09:48:59 soxofaan Exp $  // $Id: geshifilter.filtertips.inc,v 1.7 2009/07/04 11:05:56 soxofaan Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 40  function _geshifilter_filter_tips($delta Line 40  function _geshifilter_filter_tips($delta
40    }    }
41    if (!$bracket_open) {    if (!$bracket_open) {
42      drupal_set_message(t('Could not determine a valid tag style for GeSHi filtering.'), 'error');      drupal_set_message(t('Could not determine a valid tag style for GeSHi filtering.'), 'error');
43      $bracket_open = '&lt;';      $bracket_open = check_plain('<');
44      $bracket_close = '&gt;';      $bracket_close = check_plain('>');
45    }    }
46    
47    if ($long) {    if ($long) {
# Line 63  function _geshifilter_filter_tips($delta Line 63  function _geshifilter_filter_tips($delta
63      // language tags      // language tags
64      $tags = array();      $tags = array();
65      foreach ($language_tags as $tag) {      foreach ($language_tags as $tag) {
66        $tags[] = '"<code>'. $bracket_open . $tag . $bracket_close .'</code>" '. t('for @lang source code', array('@lang' => $languages[$tag_to_lang[$tag]]));        $tags[] = t('"<code>!tag</code>" for @lang source code', array(
67            '!tag' => $bracket_open . $tag . $bracket_close,
68            '@lang' => $languages[$tag_to_lang[$tag]])
69          );
70      }      }
71      $items[] = t('Language specific syntax highlighting tags: !tags.', array('!tags' => implode(', ', $tags)));      $items[] = t('Language specific syntax highlighting tags: !tags.', array('!tags' => implode(', ', $tags)));
72      // PHP specific delimiters      // PHP specific delimiters

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.2