Have more than one Hyperlink text color

0 votes
asked Aug 8, 2018 in Question / help by jmartin (120 points)
i recently found http://plantuml.com/link and started putting links into my diagrams.  The default blue color wasn't doing it for me so i found skinparam HyperlinkColor

now that i have set the hyperlink color, it works for almost all of my hyperlinks in one object but in another i'd like another color, because the background of that object is different...

I noticed you can put a color right before a particular object and it will change the background color of that object - is there a way to affect the color/hyperlink color that way too?   I also tried creole with <color:black> inside and outside of the [[ used to define the hyperlink.

Do i just need to wait for the skinparam for hyperlink color to be on each object?

1 Answer

0 votes
answered Aug 25, 2018 by plantuml (295,000 points)
Could you provide a simple example that show the issue ? It would help.

Thanks!
commented Mar 1, 2019 by Filip
I am not the original author, but I think an example would be

@startuml
Bob -> Alice : <color: red>hello [[world]]</color>
@enduml

In this example, the word "hello" is colored red but the world "blue" is the original blue color. I would like the word "world" to be colored red as well, as there is no current way to have different colors for different hyperlinks.
commented Mar 25, 2019 by anonymous
Another possibility would be to allow setting a specific hyperlink configuration for a given stereotype.

Example:
    skinparam Activity<<Event>> {
        hyperlinkColor black
        hyperlinkUnderline false
    }
commented Apr 6, 2022 by anonymous
Hi I'm trying but it doesn't work


@startuml

skinparam class<<normal>> {
    HyperlinkColor #FF0000
}

skinparam class<<otro>> {
    HyperlinkColor #FFFFFF
}

 class uno <<normal>> {
  * aaa
  + [[modelo normal]]
  - bb
 }
 
  class TRES AS "[[http://www.google.es tres]]" <<otro>> {
  * aaa
  + [[otro modelo]]
  + aa 
  - bb
 }

@enduml

commented Apr 6, 2022 by The-Lu (64,340 points)

Hello all, and PlantUML team,

Here is another attempts with style (but not currently working...):

<style>
root {
  HyperlinkColor #FF0000
}
.normal {
  HyperlinkColor #FF0000
}
.otro {
  HyperlinkColor #FFFFFF
}
</style>

Regards.

commented Apr 7, 2022 by plantuml (295,000 points)

Thanks for the report.

This has been fixed in last beta.

...