Configure SublimeLinter-html-tidy
Ready Works
- Install Sublime Text 3
- Install SublimeLinter
- Download tidy.zip from HTML Tidy for Windows
- Install SublimeLinter HTML Tidy
Step 2 and 4 install from Package Control: Install Package
. Not introduce here.
Configure
解压第3步下载的文件得到
tidy.exe
,拷贝到目录C:/Users/Username/tidy
,其它目录也可以。依次打开:
Preferences > Package Settings > SublimeLinter > Settings
下滑找到
paths
节点,如下:1
2
3
4
5
6
7{
"paths": {
"linux": [],
"osx": [],
"windows": []
}
}拷贝
tidy.exe
所在的目录到windows
项:1
2
3
4
5
6
7{
"paths": {
"linux": [],
"osx": [],
"windows": ["~/tidy"]
},
}注意:路径
"~/tidy"
是相对用户目录的路径,即C:/Users/Username
,路径不包含tidy.exe
程序本身。当然,用绝对路径或其它目录也是可以的(如:d:/tidy
)。Done!!