コード例 #1
0
 /**
  * @param string $sourcode
  * @param string $language
  * @param array $configuration
  */
 public function getFormattedText($sourceCode, $language = 'TypoScript', $configuration = array())
 {
     $geshi = new SourceCode($sourceCode, $language);
     $geshi->setStrictMode(false);
     $geshi->setLineNumbering(1);
     return $geshi->getFormatedSourceCode();
 }