Picky, picky - colors for #IF %True clause

Started by John Montenigro, May 01, 2014, 11:44:40 AM

Previous topic - Next topic

John Montenigro

While developing and testing code, I often set off a block of successful statements with #IF 0, and then start experimenting with variations in a copied block of the same statements.

Then at a certain point, I want to switch between them, so I modify my conditionals to the full #IF/#ELSE/#ENDIF.

When I set the #IF to zero (will never be true), the code turns green, to indicate it's effectively commented out. This is fine, when I'm just commenting out a block of code.

BUT! The code between the #ELSE and the #ENDIF is ALSO turned to green, and this is NOT fine!
Only the part that evaluates to be FALSE should be turned green.

In order to avoid misleading green text, I've taken to cheating, by opening the conditional statement with  #IF %FALSE. This avoids getting green code for the False clause, but at least I'm not getting ALL green code.

I looked for an optional color setting for the Code Editor, but there is no selection for "#IF false clause" (where the True clause would be presumed to be "normal")...

I know this is not earth-shattering, but it's one of those "quality of life" things...

Thanks for being patient with this request!
-John