Sunday, 5 May 2024

PlantUML: Use code tag to display programming code

code.txt

@startuml

skinparam NoteFontSize 8

scale 1.5

Client -> Server: Client Hello
Server -> Client: Server Hello


note left of Client 
<code>
public static void main(String args[]){
     System.out.println("Hello")
}
</code>
end note

@enduml

 

Above snippet generate below diagram.


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment