Indefero

Indefero Commit Details


Date:2009-04-07 04:38:24 (15 years 8 months ago)
Author:Mehdi Kabab
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:194a081c90848021a58661fe45b8da7f549b8205
Parents: 04c2115fc20279363c08c648e741a8f3c99125ea
Message:Added the highlighted extensions as text extensions.

Changes:

File differences

src/IDF/Views/Source.php
505505
506506
507507
508
508
509509
510
510
511
511512
512513
513514
514515
515516
516
517
517518
518519
519520
......
534535
535536
536537
537
538
538539
539540
540541
if (0 === strpos($fileinfo[0], 'text/')) {
return true;
}
$ext = 'mdtext php js cpp php-dist h gitignore sh py pl rb diff patch'
$ext = 'mdtext php-dist h gitignore diff patch'
.Pluf::f('idf_extra_text_ext', '');
return (in_array($fileinfo[2], explode(' ', $ext)));
$ext = array_merge(self::$supportedExtenstions, explode(' ' , $ext));
return (in_array($fileinfo[2], $ext));
}
public static function highLight($fileinfo, $content)
{
$pretty = '';
if (IDF_Views_Source::isSupportedExtension($fileinfo[2])) {
if (self::isSupportedExtension($fileinfo[2])) {
$pretty = ' prettyprint';
}
$table = array();
*/
public static function isSupportedExtension($extension)
{
return in_array($extension, IDF_Views_Source::$supportedExtenstions);
return in_array($extension, self::$supportedExtenstions);
}
/**

Archive Download the corresponding diff file

Page rendered in 0.08217s using 13 queries.