Report a bug!

Source formatting applied to mixed JavaScript and PHP code will destruct it

Example below shows JS code with PHP line. After source formatting, PHP code will be damaged. <? and ?> will be replaced by <(space)? and ?(space)>.

If PHP code will be replaced by:
<?php $a=10; ?>

everything will be ok.

<!doctype html>
<html>

<head>
<meta charset="utf-8">
<title>Test</title>
<script>
<? $a=10; ?>
var a=10;
</script>
</head>

<body>
</body>

</html>

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Marek shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    UNDER REVIEW  ·  Adminkragarwa (Admin, Adobe Dreamweaver) responded  · 

    Hi,

    Thanks for reporting the issue.
    We have logged an internal bug for this issue and tracking it.
    We will update you once the bug is fixed.

    Thanks
    Kratika
    Dreamweaver Team

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base