Coloring in Phabricator comments

Is there a way to change colors in the remarkup in a comment?

My use case is we have a script related to our CI/CD system that analyses the code that changed in diffs, and posts a comment when it finds differences in certain files. The diff has the usual “>” and “<” notation used by git diff, usually in red and green in a terminal. But as in Phabricator the comment’s all black, it’s hard to read. So, is there any sequence control, html or something I can embed in the comments to get certain parts be red and others green?


There are no text color rules in Remarkup.

As a possible workaround, you might be able to adjust the syntax you use and use the unified diff highlighter:

Screen Shot 2020-07-15 at 11.46.17 AM

That indeed solves my issue, I can adjust the output of diff to use that format.