#3526 closed Bug (No Bug)
Syntax Coloring Not Working Intermittently with Respect to #cs and #ce Directives
Reported by: | general123456789@… | 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)
Changed 8 years ago by general123456789@…
Changed 8 years ago by general123456789@…
Example of SciTE v3.5.4 Syntax Coloring Working in Same File
comment:1 Changed 8 years ago by anonymous
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 Changed 8 years ago by Jos
- Resolution set to No Bug
- Status changed from new to closed
Closing as there's no response to me question for more info.
Come the to forum and PM em with the info in case you do return.
Thanks,
Jos
Changed 7 years ago by qwert
comment:3 Changed 7 years ago by qwert
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.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Example of SciTE v3.5.4 Syntax Color Bug