embedded javascript block in your view with IDE checking or intellisense

Comparing #1 with #2

Content

this is my way for embed js code block in view file: ~~~

 
 
 
```php

<?php \year\widgets\JsBlock::begin() ?>
<script >
[...]
</script>
<?php \year\widgets\JsBlock::end()?>
~~~```
 


and my extension for it:
[...]