Auto-formatting embed JavaScript in php files in Eclipse

Why auto-formatting (by Ctrl-Shift-F) of embed JavaScript inside php file is not working in my Eclipse? I mean formatting of the block like this:

//php code here
?>
<script type="text/javascript">function test(){
console log( a);
        console.log('b');}
</script>
}
<?php
//php code here

I have Eclipse for PHP 2021-06 and WildWebDeveloper installed. If I put the same javascript code inside .js file JavaScript autoformatting works as expected.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum