コード例 #1
0
ファイル: HTML.php プロジェクト: nochso/diff
 public function __construct($path = 'HTML.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->setEscaper(new Escape\Html());
     $this->printf = new Printf();
     $this->printf->setFormats('%s', '<ins>%s</ins>', '<del>%s</del>');
 }
コード例 #2
0
ファイル: POSIX.php プロジェクト: nochso/diff
 public function __construct($path = 'Text.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->printf = new Printf();
     $same = '%s';
     $add = $this->color('%s', self::FG_GREEN);
     $remove = $this->color('%s', self::FG_RED);
     $lineNumber = $this->color('%s', self::FG_YELLOW) . ' %s';
     $this->printf->setFormats($same, $add, $remove, $lineNumber);
 }
コード例 #3
0
ファイル: GithubMarkdown.php プロジェクト: nochso/diff
 public function __construct($path = 'GithubMarkdown.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->setEscaper(new Escape\Html());
 }
コード例 #4
0
ファイル: Text.php プロジェクト: nochso/diff
 public function __construct($path = 'Text.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->printf = new Printf();
 }