An html-tag for code

0 votes
asked Sep 7 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

0 votes
answered Sep 22 by plantuml (230,800 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!

...