Hi,
to comment out a big block of code which contains c-style comments, I use #if 0 .. #endif. Unfortunately the Keil editor doesn't recognize this as comment, thus it doesn't highlight this block. Is there a way to tell the editor that #if 0 .. #endif should be handled like a comment?
regards, Daniel
No, #if 0 .. #endif is not like a comment and, therefore, should not be treated like one.
However, most (all?) other editors worthy of the name "Programmer's Editor" do have a facility to highlight conditional compilation sections.
Eclipse and Codewright do, to name but two.
See also: www.8052.com/.../168524