Opened on Jan 16, 2017 at 10:23:54 PM
Closed on Jan 26, 2017 at 8:12:27 PM
Last modified on Nov 10, 2017 at 3:42:38 PM
#3526 closed Bug (No Bug)
Syntax Coloring Not Working Intermittently with Respect to #cs and #ce Directives
| Reported by: | Owned by: | Jos | |
|---|---|---|---|
| Milestone: | Component: | SciTE4AutoIt | |
| Version: | 3.3.14.2 | Severity: | None |
| Keywords: | syntax coloring colouring | Cc: |
Description
AutoIT SciTE 3.5.4:
I use the #cs and #ce pairings throughout my code to comment out debugging code. I then use regular expression replace to uncomment it when I need it. This serves to replace the fact that I don't believe there is a way to use a directive to make pieces of code be interpreted or not or compile or not compile. However, as I continued to use this, at times the syntax coloring would not work and everything would appear to be commented out when it really wasn't. This would only happen from a certain point to the bottom of the script. Also, when I would change the first #cs (where that started happening in the file) to something else and then back to #cs, the syntax coloring would again be correct.
example:

[]
Attachments (3)
Change History (6)
by , on Jan 16, 2017 at 10:24:56 PM
| Attachment: | Syntax Color Bug Fragment 01162017.jpg added |
|---|
by , on Jan 16, 2017 at 10:28:47 PM
| Attachment: | Syntax Color Bug Fragment 2 01162017.jpg added |
|---|
Example of SciTE v3.5.4 Syntax Coloring Working in Same File
comment:1 by , on Jan 17, 2017 at 2:12:31 PM
Please post some code to allow me to replicate the issue you see and the steps I should take to make it go wrong.
Also ensure you try the latest production version to ensure this isn't fixed already before posting a bug report.
Jos
comment:2 by , on Jan 26, 2017 at 8:12:27 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Closing as there's no response to my question for more info.
Come to the forum and PM em with the info in case you do return.
Thanks,
Jos
by , on Nov 10, 2017 at 3:21:12 PM
| Attachment: | Slight Malfunction.JPG added |
|---|
comment:3 by , on Nov 10, 2017 at 3:42:38 PM
I think this ticket should be reopened. FOR MONTHS, I've experienced exactly the fails that the OP described ... although, all things considered, I have considered this a simple annoyance. But it really needs to be fixed for the long term.
I've attached a small example of what I often see. The black text should only occur between the #cs/#ce pair. But occasionally, out of the clear blue, the black propagates to the end of the script. The "fix" that the OP suggests usually works, but not always. Sometimes is takes fiddling with different statements to get SciTE back on track. Restarting SciTE always works ... so it seems to be in the interpretation side and not something embedded in the Au3 file.
Regarding replication, I would estimate that any decent-size script with multiple occurrences of the #cs/#ce pairs would suffice for testing. It happens across all of my scripts and I haven't been able to correlate it with any particular edits. On days that I spend hours editing, it happens a couple or three times.
That's all I can think of to add.

Example of SciTE v3.5.4 Syntax Color Bug