a tricky tip on indending php&javascript mixed code

What I mean is the autoindent function of some editor that do not understand mixed code language. PHP and Javascript couple is special:   <script> var myJson = /*<?php if($THIS && $that) { ?>*/ <?php echo json_encode($that); ?> /*<?php } else { ?>*/ <?php echo json_encode($those); ?> /*<?php } ?>*/ var isOk = false; /*<?php […]

Read More…