Sublime Forum

JavaScript snippets in HTML/PHP file when in <script> tags?

#1

When I’m working in a PHP file, Sublime Text is smart enough to give me access to HTML when working in the HTML and PHP snippets when working between <?php ?> tags.

When working between tags, ST does not seem to give me access to JavaScript or jQuery snippets. I have to manually change the file syntax to JavaScript (or jQuery).

Is there some way to set this up so it automatically gives me JS snippets when between tags?

0 Likes