Avatar

i doubt if there is a mistake with 【code】 (General)

by Micha ⌂, Thursday, August 12, 2010, 16:03 (5017 days ago) @ kammy

Hi,

do you solve the problem?

I found in posting.inc.php the following code:

 
     // checkavailable languages for the syntax highlighter:
     if($settings['bbcode']==1 && $settings['bbcode_code']==1 && $settings['syntax_highlighter']==1)
      {
       // get available language schemas:
       $handle=opendir('./modules/geshi/geshi');
       while($file = readdir($handle))
        {
         #if(is_file($file))
         if(strrchr($file, ".")==".php")
          {
           $available_languages[] = substr($file, 0, strrpos($file, '.'));
          }
        }
       closedir($handle);
       if(isset($available_languages))
        {
         natcasesort($available_languages);
         $smarty->assign('code_languages', $available_languages);
        }
      }
 

in the posting.inc.tpl there are:


{if $code_languages}
{foreach from=$code_languages item=code_language}
<dd id="{$code_language}" title="{#bbcode_code_label_specific#|replace:"[language]":$code_language}">{#bbcode_code_instruction_spec#|replace:"[language]":$code_language}</dd>
{/foreach}

Do you have the same code? Do you have activate the syntax highlighter in the admin-area?

regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread