@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Pass the new default syntax highlighting map to the remarkup engine

Summary: Ref T9790. This passes the map down so we can generate highlighted mail.

Test Plan:
Generated this relatively respectable-looking HTML mail:

{F1258558}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9790

Differential Revision: https://secure.phabricator.com/D15848

+18
+4
src/infrastructure/markup/PhabricatorMarkupEngine.php
··· 480 480 'syntax-highlighter.engine', 481 481 $options['syntax-highlighter.engine']); 482 482 483 + $style_map = id(new PhabricatorDefaultSyntaxStyle()) 484 + ->getRemarkupStyleMap(); 485 + $engine->setConfig('phutil.codeblock.style-map', $style_map); 486 + 483 487 $engine->setConfig('uri.full', $options['uri.full']); 484 488 485 489 $rules = array();
+14
src/infrastructure/syntax/PhabricatorSyntaxStyle.php
··· 27 27 ->execute(); 28 28 } 29 29 30 + final public function getRemarkupStyleMap() { 31 + $map = array( 32 + 'rbw_r' => 'color: red', 33 + 'rbw_o' => 'color: orange', 34 + 'rbw_y' => 'color: yellow', 35 + 'rbw_g' => 'color: green', 36 + 'rbw_b' => 'color: blue', 37 + 'rbw_i' => 'color: indigo', 38 + 'rbw_v' => 'color: violet', 39 + ); 40 + 41 + return $map + $this->getStyleMap(); 42 + } 43 + 30 44 }