Solution to the code not being highlighted in vscode:
An HTML file, if it exceeds 500 lines, the HTML The code will be automatically protected. Automatic protection will not display all the colors of the HTML code.
The HTML code is not highlighted. Click the lower right corner to switch the language to XML, that is, the HTML code part is highlighted and colored.
Switch to HTML again, the CSS and javascript parts will be highlighted, and the code will be displayed with color
Recommended tutorial "VSCode Tutorial"
The above is the detailed content of Solve the problem of code not being highlighted in vscode. For more information, please follow other related articles on the PHP Chinese website!