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

Ignore Comments #36

Open mpaluta opened 5 years ago

mpaluta commented 5 years ago

Hi Josh,

Thanks for the extension! Would it be possible to add the option to ignore comments inside code cells? I like this extension for highlighting variable and method occurrences, but when I'm typing comments, I typically don't want all occurrences of a word to highlight.

For what it's worth, it appears the default behavior of PyCharm is to ignore comments, while Sublime includes them, so users accustomed to different IDEs may choose differently. I think this makes a good case for the option to toggle on or off.