Menu

brackets not highlighted

saisai
2010-09-25
2012-11-13
  • saisai

    saisai - 2010-09-25

    I found a problem when I use NPP5.8:

    Normally, when the cursor stops by a couple of brackets, the brackets will be highlighted in red.
    However, this function fails when the two brackets are not in the same line. For example, the text below:
    (hello
    )

    The brackets will not be highlighted when the cursor stops by the second bracket.

    Has any one found the same problem?

     
  • cchris

    cchris - 2010-09-28

    With which highlighters does this take place?

    CChris

     
  • cchris

    cchris - 2010-09-28

    Does this happen in PHP with every theme, or just one particular theme, which may be in error for some reason? Still cannot reproduce.

    CChris

     
  • Sing

    Sing - 2010-09-29

    I think it happened on every theme because I tried the default theme, it also cannot match the bracket

     
  • saisai

    saisai - 2010-09-29

    It happens no matter what language you're using

     
  • Sing

    Sing - 2010-11-02

    I finally finds why this happened.
    It only happens on ANSI file. If you change the file encoding from ANSI to UTF-8 (through "Encoding" -> "Encode / Convert to UTF-8"), the brace highlighting works fine.

     
  • cchris

    cchris - 2010-11-02

    If this hasn't been reported as a bug yet, then it has to. Since Scintilla is responsible for such highlighting, the bug is more likely to come from that project.

    CChris

     
  • François-R Boyer

    I dont seem to have that bug here.  And since singx7 says it happens only in ANSI, it is probably related to the system locale.  Are you running a Chinese Windows?

     
  • saisai

    saisai - 2010-11-02

    Yes. I'm running a chinese windows. I'm now using the new version 5.8.3, this problem seems been resolved.

     
  • Sing

    Sing - 2010-11-03

    I get this bug on a Eng Windows XP Home, and a Chinese Windows 7 Ultimate.

    @ lusaisai.
    Have you changed the file encoding from UTF-8 to ANSI for testing this bug?

     
  • ygangli

    ygangli - 2010-11-03

    I also got this problem in release 5.8! So I have changed it to 5.7.

     
  • cchris

    cchris - 2010-11-03

    Do you mean plain 5.8, or 5.8.3?

    CChris

     
  • saisai

    saisai - 2010-11-04

    I tested that it works fine under UTF-8. The bug only happens under ANSI.

     
  • ygangli

    ygangli - 2010-11-04

    I think this bug is likely to come from the Scintilla  project. Because when I use the old version of Scintilla, it works fine!