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

fix not highlighting selected text #13

Closed jcb91 closed 7 years ago

jcb91 commented 7 years ago

the defaults for new editors were being set for the highlighter codemirror option, but not for the mark-selection addon, which is required for the selection not to be highlighted. As a result, cells created after the nbextension loaded would highlight selected text (might have been behind #10?). In addition, the selected text in edit-mode (non-focussed) cells was still being highlighted, so this fixes the css rule for that.