Changeset View
Changeset View
Standalone View
Standalone View
src/markup/syntax/highlighter/PhutilDivinerSyntaxHighlighter.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Simple syntax highlighter for the ".diviner" format, which is just Remarkup | * Simple syntax highlighter for the ".diviner" format, which is just Remarkup | ||||
| * with a specific ruleset. This should also work alright for Remarkup. | * with a specific ruleset. This should also work alright for Remarkup. | ||||
| */ | */ | ||||
| final class PhutilDivinerSyntaxHighlighter { | final class PhutilDivinerSyntaxHighlighter extends Phobject { | ||||
| private $config = array(); | private $config = array(); | ||||
| private $replaceClass; | private $replaceClass; | ||||
| public function setConfig($key, $value) { | public function setConfig($key, $value) { | ||||
| $this->config[$key] = $value; | $this->config[$key] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||