Changeset View
Changeset View
Standalone View
Standalone View
src/markup/syntax/highlighter/PhutilConsoleSyntaxHighlighter.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Simple syntax highlighter for console output. We just try to highlight the | * Simple syntax highlighter for console output. We just try to highlight the | ||||
| * commands so it's easier to follow transcripts. | * commands so it's easier to follow transcripts. | ||||
| */ | */ | ||||
| final class PhutilConsoleSyntaxHighlighter { | final class PhutilConsoleSyntaxHighlighter extends Phobject { | ||||
| private $config = array(); | private $config = array(); | ||||
| private $replaceClass; | |||||
| public function setConfig($key, $value) { | public function setConfig($key, $value) { | ||||
| $this->config[$key] = $value; | $this->config[$key] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getHighlightFuture($source) { | public function getHighlightFuture($source) { | ||||
| $in_command = false; | $in_command = false; | ||||
| Show All 34 Lines | |||||