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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.