Skip to content

Commit 58eddcc

Browse files
committed
feat: highlight the hovered words
1 parent 78bbbd7 commit 58eddcc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

styles/atom-ide-datatips.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,14 @@
146146
}
147147
// user-select: text; // allow selecting text // TODO does not work
148148
}
149+
150+
// Highlight the hovered words
151+
atom-text-editor {
152+
153+
.datatip-highlight-region > .region {
154+
// Use a faded version of the cursor color so as to have a distinction when
155+
// overlapping with a selection (`@syntax-selection-color`). This element is
156+
// on top of the selection element, so that will show through.
157+
background: fade(@syntax-cursor-color, 10%);
158+
}
159+
}

0 commit comments

Comments
 (0)