? geshi-extra
Index: geshifilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/geshifilter/geshifilter.module,v
retrieving revision 1.18.2.37
diff -u -u -p -r1.18.2.37 geshifilter.module
--- geshifilter.module	13 Nov 2007 10:13:59 -0000	1.18.2.37
+++ geshifilter.module	17 Nov 2007 18:54:01 -0000
@@ -634,7 +634,14 @@ function geshifilter_admin_general_setti
     '#description' => t('When enabled, PHP source code will be syntax highlighted with the built-in PHP function <code>!highlight_string</code> instead of with the GeSHi library. GeSHi features like for example line numbering and usage of an external CSS stylesheet are not available.', array('!highlight_string' => l('highlight_string()', 'http://php.net/manual/en/function.highlight-string.php'))),
     '#default_value' => variable_get('geshifilter_use_highlight_string_for_php', FALSE),
   );
-
+  // Option to disable Keyword URL's
+  $form['geshifilter_highlighting_options']['geshifilter_enable_keyword_urls'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable GeSHi keyword URLs'),
+    '#description' => t('For some languages GeSHi can link language keywords (e.g. standard functions) to their online documentation. (GeSHi documentation: !link)',
+      array('!link' => l('Keyword URLs', 'http://qbnz.com/highlighter/geshi-doc.html#keyword-urls'))),
+    '#default_value' => variable_get('geshifilter_enable_keyword_urls', TRUE),
+  );
 
   // Styling, layout and CSS
   $form['geshifilter_styling'] = array(
@@ -1183,6 +1190,8 @@ function _geshifilter_override_geshi_def
   $geshi->set_code_style('font-family: monospace; font-weight: normal; font-style: normal');
   // overall class needed for CSS
   $geshi->set_overall_class('geshifilter-'. $langcode);
+  // set keyword linking
+  $geshi->enable_keyword_links(variable_get('geshifilter_enable_keyword_urls', TRUE));
 }
 
 /**
