UpLoad.Php's code color problem UpLoad.Php's code color problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

UpLoad.Php's code color problem

Started by jianzhan, March 29, 2007, 10:00:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jianzhan

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

Nibbler

No. Syntax highlighting means nothing.

Sami

Dreamweaver has some Syntax highlighting problem with HEREDOC coding
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

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.