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