coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: jianzhan on March 29, 2007, 10:00:25 PM

Title: UpLoad.Php's code color problem
Post by: jianzhan on March 29, 2007, 10:00:25 PM
Hi everybody,

function open_form($path) {

    echo <<<EOT
    <script language="javascript" type="text/javascript">
    function textCounter(field, maxlimit) {
            if (field.value.length > maxlimit) // if too long...trim it!
            field.value = field.value.substring(0, maxlimit);
    }
    </script>
    <form method="post" action="$path" enctype="multipart/form-data">
EOT;
}

line from 320 to 331
I delete the line </script>
The code color looks like perfect in Dreamweaver. The code color looks like not right in Dreamweaver if there is the line </script>.

Please check the attached two pictures and you will know what I said.

My question is that Can I delete the line </script>?

Yours sincerely

Jian Zhan
Title: Re: UpLoad.Php's code color problem
Post by: Nibbler on March 30, 2007, 12:53:00 AM
No. Syntax highlighting means nothing.
Title: Re: UpLoad.Php's code color problem
Post by: Sami on March 30, 2007, 07:34:19 AM
Dreamweaver has some Syntax highlighting problem with HEREDOC coding
Title: Re: UpLoad.Php's code color problem
Post by: Joachim Müller on March 30, 2007, 08:23:28 AM
Don't use a WYSIWYG editor like Dreamweaver to edit Coppermine files unles you really, really know your way around. Use a plain-text editor instead.