Commenting stuff out doesn't always work.
1 Attachment(s)
this one had me going for a while. Commenting out code doesn't mean it won't be drawn. Attached is the pet window code (with some broken stuff i'm trying) with all the command buttons commented out. they still show up. :eek:
|
Interesting... Anyone know why this is?
|
I noticed this also. There is a workaround, though. Instead of commenting blocks or paragraphs, you need to comment out each individual line. Irritatingly time consuming, but I've found that it does work in the files I've been testing.
|
oh cool fil.:D
my workaround has been deleting the code.. |
Here is what I do
I have a programmers editor (something like UltraEdit), and this is what I do.
<!-- my comments as to whyt I'm commenting this code out <block of code I want commented out> <block of code I want commented out> --> The secret is to replace the "<" and ">" characters in the block with other characters. This way, the parser isn't having to work hard to keep its place in the file. I use "~" and "^". So my code ends up looking like this. <!-- comment before clock of code ~block of code I want commented out^ ~block of code I want commented out^ --> Using a programmers editor, it is easy to do a global search and replace within a selected area of code. |
Quote:
It would appear, then, that the comment tag is being closed on ">" instead of the appropriate "-->". |
All times are GMT -5. The time now is 09:20 AM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI