An html-tag for code

+1 vote
asked Sep 7, 2020 in Wanted features by anonymous

PlantUML provides several html tags, but none renders text as code

My preferred tag would be <code></code>

1 Answer

+1 vote
answered Sep 22, 2020 by plantuml (295,000 points)

It's amazing that nobody has never requested this before !
Thanks for your suggestion.
With last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startuml
alice -> bob
note left
this is my note
<code>
main()
{
  foo();
}
</code>
over
end note
@enduml

This is not widely tested, so any feedback is welcome!

commented Oct 1, 2020 by The-Lu (64,340 points)

Hello PlantUML team,

  • Could you allow inline code or semi-inline code?

As:

<code>main(){ foo(); }</code>


[See on PlantUML server]

or:

<code>main(){ foo(); }
</code>


[See on PlantUML server]

or:

<code>
main(){ foo(); }</code>


[See on PlantUML server]

Thanks for your support,

Regards,
Th.

asked Nov 4, 2021 in Wanted features by The-Lu (64,340 points) [Salt] Allow code html-tag on Salt Diagram
...