Looking for advice from developers phamiliar with PHP, or Phabricator internals, on how to make Phabricator to have PlantUML (text to UML diagrams) within wiki pages, tasks. So that this UML code snippet in GitHub/GitLab grammar
```plantuml
Bob->Alice : hello
```
would be shown as diagram on rendered wiki page.
"Call it from PHP" page on https://plantuml.com/demophp.php is 404 - Not Found
.
UPDATE Please add answer with any further improvements or suggestions.
Use the PlantUML plugin in Rider to create UML diagrams that can be integrated into your codebase. Start by adding a . puml file. Each new file that PlantUML creates contains example PUML, which is PlantUML's own syntax for creating UML diagrams.
To export to SVG or PNG: place your cursor within the desired PlantUML text, open the command palette (Ctrl-Shift-P on my PC); or right click and select Command Palette... Choose "PlantUML: Export Current Diagram"
The syntax you have used is for syntax highlighting of source code. I think it would be better to define a new remarkup tag for this purpose (by extending PhabricatorRemarkupCustomBlockRule
in a custom extension) rather than trying to overload syntax highlighting.
Unfortunately I can't find any examples of extending PhabricatorRemarkupCustomBlockRule
, but there are examples of extending PhabricatorRemarkupCustomInlineRule
which should be similar, such as here: https://discourse.phabricator-community.org/t/hyperlink-to-external-bug-tracking-system/1415
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With