Sublime Text - Version 3.0, Build 3143
I deal with a lot of php files that contain HTML, CSS and JavaScript. The only problem I've found so far is when I'm looking at script tags in a PHP file. The syntax is set to PHP but comments outside of JS functions break the rest of the code below it (it looks like it's trying to detect regex?)
When I move the // test
comment into the function then all is well:
I'm curious to know where the problem exists and maybe find a fix.
type="text/javascript"
to the script tag doesn't fix anything My finger points to the PHP syntax highlighting ... but if that's the case, how can this be fixed?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.