0

I am using Scriban to create an HTML template that will be filled out by my program. I am editing the template in VS Code - so far I've found a syntax highlighter but no dice with formatting.

This is what it looks like when I enter code and save the file:

Image of poorly formatted HTML

All the ending tags are left-aligned instead of falling in line with the other tags. When I try to manually format it, it says "There is no formatter for 'scriban-html' files installed.", which leads the program to look for a formatter, and nothing is found.

Is there a way to force VS Code to use an HTML formatter, but continue to use the Scriban highlighter? I have tried these settings in settings.json but to no avail:

{
  "workbench.colorTheme": "Default Dark+",
  "editor.formatOnSave": true,
  "files.associations": {
    "*.scriban.html": "html"
  },
  "security.workspace.trust.untrustedFiles": "open"
}
Ken White
  • 123,280
  • 14
  • 225
  • 444
zkdr
  • 83
  • 11

0 Answers0