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

+1 vote
answered Sep 22 by plantuml (232,180 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 by The-Lu (8,880 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.

...