jcb91 / jupyter_highlight_selected_word

Jupyter notebook extension that enables highlighting every instance of the current word in the notebook
Other
61 stars 7 forks source link

Highlight only selected text #25

Open cibic89 opened 6 years ago

cibic89 commented 6 years ago

Hi, is there a way to highlight only selected text? If I select a block of code it highlights words within. Have both "...match whole words" and "highlight matches if surrounded by non-word characters..." off although the latter is off.

image

jcb91 commented 6 years ago

Do you mean a way to not have the little lines between each word? Unfortunately I haven't been able to think of a way to do this yet 😞 The problem is that the highlighting is accomplished by CodeMirror applying CSS classes to existing elements, which are all separate. As a result, a background-colour highlight works fine, but a border ends up around each individual word/element...

cibic89 commented 6 years ago

Yes, when I switch to that the problem is gone. Works fine for me!

Sent from BlueMailhttp://www.bluemail.me/r?b=11687 On 5 Jan 2018, at 11:51, Josh Barnes notifications@github.com<mailto:notifications@github.com> wrote:

Do you mean a way to not have the little lines between each word? Unfortunately I haven't been able to think of a way to do this yet 😞 The problem is that the highlighting is accomplished by CodeMirror applying CSS classes to existing elements, which are all separate. As a result, a background-colour highlight works fine, but a border ends up around each individual word/element...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jcb91/jupyter_highlight_selected_word/issues/25#issuecomment-355537650, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVnF9y3Zn3Euf0H1mUEZWQZTqyPx8-tAks5tHgzagaJpZM4RTVr-.