Menu

#1884 Highlight: one-letter words are not highlighted

None
closed-fixed
None
5
2020-03-02
2017-05-05
No

When "HIghlight owrd at caret" is on, one-letter words are not highlighted.

Not sure if this is intentional, but I want all words, even one-letter ones to be highlighted.

jEdit 5.3.0, Highlight 2.2

Discussion

  • Skeeve

    Skeeve - 2017-11-01

    If you replace the 2 in line 666 of HighlightManagerTableModel.java with a 1, you get highlight of one-letter words.

    So to answer your doubts: It seems to be intentional that a word for Highlight has to have at least 2 letters.

    I almost forgot. This is the line:

    if (wordEnd - wordStart < 2)
    
     

    Last edit: Skeeve 2017-11-01
  • Skeeve

    Skeeve - 2017-11-02
    • status: open --> pending
    • Group: -->
     
  • Matthieu Casanova

    • status: pending --> closed-fixed
    • assigned_to: Matthieu Casanova
     
  • Matthieu Casanova

    Hey, better late than never I added an option to set the minimum length of word to be highlighted

     

Log in to post a comment.