EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Bugs (https://www.eq2interface.com/forums/forumdisplay.php?f=9)
-   -   Commenting stuff out doesn't always work. (https://www.eq2interface.com/forums/showthread.php?t=176)

insomniac 10-27-2004 03:45 PM

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:

Cantino 10-27-2004 03:59 PM

Interesting... Anyone know why this is?

filidecht 11-14-2004 11:11 AM

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.

insomniac 11-14-2004 11:35 AM

oh cool fil.:D
my workaround has been deleting the code..

Imadruid 11-14-2004 01:49 PM

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.

Deathbane27 11-21-2004 01:26 PM

Quote:

Originally Posted by Imadruid
...The secret is to replace the "<" and ">" characters in the block with other characters...

<!-- comment before clock of code

~block of code I want commented out^
~block of code I want commented out^

-->


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