Problem: When inserting a PHP code into an HTML document, PHP is not highlighted. Apply a screen. If this file is only with PHP, the code is normally highlighted (2 screen). You can somehow make the HTML and PHP in one file together have a backlight, maybe some need to install a plugin?
There is also a problem with the fact that Sublay often does not understand the code, it is also visible on 1 screenshot in red, although there are no errors there and everything works fine. Because of this, the problems of writing code appear when it starts 2 quotes to substitute instead of one closing, generally makes quotes with gray and dark that they are not visible at all. Can I fix it somehow too? Thank you in advance.
Answer 1, Authority 100%
Your file was determined as HTML – it can be seen in the lower right corner.
- ctrl + shift + p
- SS PHP – Full command: “SET SYNTAX: PHP”
- enter