Posted: Mon May 25, 2020 9:36 pm Post subject: Grey Code (possible bug / suggestion)
Hello, everybody.
Just downloaded BASCOM 2.0.8.2 and it's awesome. Until now i ran version 2.0.7.9 and have made quite some projects on it.
There's a new feature which, to be honest, i really like - code graying. It helps me a lot with Spaghetti Code - which is inevitable in some situations... however, it does not always get the code graying right.
For example, i use interrupts a lot, and it grays redundant code as intended - but, because of that waitms (1000) between the two lines and and interrupt handler which reads the variable at two different times, this graying gets it wrong - that code is not redundant.
It does not affect code execution, it just annoys me when it appears on screen like that.
Is there someway to turn it off, just for certain lines. Even better, maybe enable it for other lines, that the IDE did not autodetect? This is a very useful feature!
I think this is intended to be used after some code is done.
You can Enable/Disable it in the menu tab Edit->Show Dead Code
Im using it for search unused but Dim`ed variables (reused code copy/paste). So only when some part of the code is working I enable "Show Dead Code" for check and disable it again because even new Dim`ed variables that I want to use in the next line are greyed till variable is not used.
EDC is right. it is just a tool to be used when the project is done.
It is important that when you find a problem you report it to support with a sample so it can be improved. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum