Skip to content

Instantly share code, notes, and snippets.

@myfonj
Last active July 30, 2019 08:37
Show Gist options
  • Save myfonj/880d33c6f07c5dadf5aada660edea933 to your computer and use it in GitHub Desktop.
Save myfonj/880d33c6f07c5dadf5aada660edea933 to your computer and use it in GitHub Desktop.
VS Code HTML Tidy task
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/d", "/c"
]
}
},
"tasks": [{
"label": "HTML Tidy of active file",
"type": "shell",
"command": "echo ${file} && C:\\apps\\HTML-TIDY\\tidy.exe",
"args": [
"-errors",
"-quiet",
"${file}"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": true
},
"problemMatcher": [{
"owner": "HTML",
"fileLocation": "absolute",
"pattern": [{
"regexp": "\\s*(.*)\\s*",
"file": 1
},{
"regexp": "^\\s*line (\\d+) column (\\d+) \\- ([^:]+): (.*)\\s*$",
"line": 1,
"column": 2,
"severity": 3,
"message": 4,
"loop": true
}]
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment