plantuml

Is it possible to use labels with spaces within in nwdiag of PlantUML


Is it possible to use labels with spaces within in entities of nwdiag of PlantUML.

All examples I've seen so far use only single-word named entities, like this:

@startuml

nwdiag {
   network internal_network {
      node_01 [ address = "1.2.3.4" ];
   }
}

@enduml

Is it possible to replace underscores with spaces in the diagram above anyhow?


Solution

  • Yes, it's possible with description

    @startuml
    
    nwdiag {
       network internal_network {
          description = "Internal Network"
          node_01 [ address = "1.2.3.4" ];
       }
    }
    
    @enduml
    

    enter image description here