How to make everything within <b> tags show up as red?

0 votes
asked Mar 13, 2019 in Question / help by Pangamma (120 points)
It would be super cool if I could (through a skinparam command) get THIS....

:Use <b>/co i</b> to open the
inspector. Now start placing
blocks and clicking the sources
of the griefs until some names
come up.;'

to have the /co i part show up as red and bold..

Without having to type: <b><color:#red>/co i</color></b>. I plan on making every bold item in the UML show up as red as well.

1 Answer

0 votes
answered Mar 13, 2019 by albert (3,520 points)

This can be accomplished by means of the !define RB(x) <b><color:#red>x</color></b>

@startuml
!define RB(x) <b><color:#red>x</color></b>
:Use <b>/co i</b> to open the
inspector. Now start placing
blocks and clicking the sources
of the griefs until some names
come up.;


:Use <b><color:#red>/co i</color></b> to open the
inspector. Now start placing
blocks and clicking the sources
of the griefs until some names
come up.;

:Use RB(/co i) to open the
inspector. Now start placing
blocks and clicking the sources
of the griefs until some names
come up.;
@enduml

See for the result:

http://www.plantuml.com/plantuml/uml/nT0_RaCX30RmdLEuwj8ioPuY5FK07Ihr03pZbwA0ZVYZvlW5IrroWMpu-q3yv4lhllQHata9j4Sc-Ffukn_0RiwY9Addrqh1tUr99sTFcpFdxqRhnimWhWIwW1HYw3za8hT2sAKUuLD-GJ-0aZn6lfej2TuQU0w0AU9jPkiHD1aLgHdPTRpMI7k3mJscsMK2zddMk8wZ7D-DKSMZKqN_rkV85APhLCpX2O8BSHWv_G40

...