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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
With which highlighters does this take place?
CChris
I also got this problem!
I mentioned it in 5.7.1 RC, but they said the highlight bracket function works on there computer.
see (search for "screen capture"): http://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/3844825
screen capture: http://www.postimage.org/image.php?v=aV4n9cS
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
I think it happened on every theme because I tried the default theme, it also cannot match the bracket
It happens no matter what language you're using
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.
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
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?
Yes. I'm running a chinese windows. I'm now using the new version 5.8.3, this problem seems been resolved.
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?
I also got this problem in release 5.8! So I have changed it to 5.7.
Do you mean plain 5.8, or 5.8.3?
CChris
I tested that it works fine under UTF-8. The bug only happens under ANSI.
I think this bug is likely to come from the Scintilla project. Because when I use the old version of Scintilla, it works fine!
I opened a ticket :
https://sourceforge.net/tracker/?func=detail&aid=3103936&group_id=2439&atid=102439
Don