Пример #1
0
 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
 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
 public function __construct($path = 'GithubMarkdown.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->setEscaper(new Escape\Html());
 }
Пример #4
0
 public function __construct($path = 'Text.php', $basePath = __DIR__ . '/../../../template')
 {
     parent::__construct($path, $basePath);
     $this->printf = new Printf();
 }