diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp
index 974b6d8f..4277bccc 100644
--- a/PowerEditor/src/Notepad_plus.cpp
+++ b/PowerEditor/src/Notepad_plus.cpp
@@ -2204,7 +2204,6 @@ void Notepad_plus::addHotSpot()
{
style_hotspot = idStyle | mask; // set "hotspot bit"
hotspotPairs.push_back(style_hotspot);
- int activeFG = 0xFF0000;
unsigned char idStyleMSBunset = idStyle & ~mask;
char fontNameA[128];
@@ -2235,6 +2234,10 @@ void Notepad_plus::addHotSpot()
_pEditView->setHotspotStyle(hotspotStyle);
_pEditView->execute(SCI_STYLESETHOTSPOT, style_hotspot, TRUE);
+ int activeFG = 0xFF0000;
+ Style *urlHovered = getStyleFromName(TEXT("URL hovered"));
+ if (urlHovered)
+ activeFG = urlHovered->_fgColor;
_pEditView->execute(SCI_SETHOTSPOTACTIVEFORE, TRUE, activeFG);
_pEditView->execute(SCI_SETHOTSPOTSINGLELINE, style_hotspot, 0);
diff --git a/PowerEditor/src/stylers.model.xml b/PowerEditor/src/stylers.model.xml
index d591e2ac..1af55f19 100644
--- a/PowerEditor/src/stylers.model.xml
+++ b/PowerEditor/src/stylers.model.xml
@@ -828,5 +828,6 @@
+