@startuml !function $nl() ' with %breakline() it works ' !return %breakline() ' with %newline() it produces a crash with stacktrace !return %newline() !endfunction !unquoted procedure $defineSkinparams($tagStereo, $bgColor, $fontColor) !$element = "rectangle" !$elementSkin = "skinparam " + $element + "<<" + $tagStereo + ">> {" + %newline() !$elementSkin = $elementSkin + " FontColor " + $fontColor + %newline() !$elementSkin = $elementSkin + "}" + %newline() !$tagSkin = $nl() + "<style>" + $nl() !$tagSkin = $tagSkin + " label {" + $nl() !$tagSkin = $tagSkin + " ." + $tagStereo + " {" + $nl() !$tagSkin = $tagSkin + " StereotypeFontColor " + $bgColor + $nl() !$tagSkin = $tagSkin + " Fontcolor " + $bgColor + $nl() !$tagSkin = $tagSkin + " }" + $nl() !$tagSkin = $tagSkin + " }" + $nl() !$tagSkin = $tagSkin + "</style>" + $nl() ' following line produces a crash with stack trace !$mixed = $elementSkin + $tagSkin ' following line produces an error (without crash and stack trace) ' Error line 28 in file: .\TODO2.puml ' !$mixed = $tagSkin $mixed !endprocedure $defineSkinparams("bluelabel", blue, red) rectangle "RECTANGLE" as r <<bluelabel>> label "LABEL" as l <<bluelabel>> @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art