vscode html 속 php 하이라이트 (부제: vscode syntax highlighter)
1. Syntax Highlighter 설치
https://marketplace.visualstudio.com/items?itemName=evgeniypeshkov.syntax-highlighter
2. settings.json 내용 수정
settings.json 경로 찾는 방법은 여러가지가 있는데,
2-1. file > preferences > settings > 입력창에 php나 settings같은 단어 쳐서 [Edit in settings.json] 링크 타고 들어가거나 2-2. file:///C://Users//user//AppData//Roaming//Code//User//settings.json 자기 컴퓨터에서 어떻게든 찾아서 들어가면 된다.
"files.associations": { "*.html": "php" } 를 추가한다.
```
{
"files.autoGuessEncoding": true,
"window.zoomLevel": -1,
"terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
"C_Cpp.updateChannel": "Insiders",
"php.validate.executablePath": "C:/xampp/php/php.exe",
"files.associations": { "*.html": "php" }
}
```
vscode php in html highlight
vscode php syntax highlight