From 8e8257c8d85658b95c73d7b0c58c7a3826038841 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 6 Nov 2013 18:53:50 +0000 Subject: [PATCH] [NEW] URL hovered highlighting can be customized. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1146 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 5 ++++- PowerEditor/src/stylers.model.xml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 974b6d8ff..4277bccc0 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 d591e2acc..1af55f194 100644 --- a/PowerEditor/src/stylers.model.xml +++ b/PowerEditor/src/stylers.model.xml @@ -828,5 +828,6 @@ +