how to make syntastic with html tidy aware of ionic tags?
Asked Answered
N

1

5

I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors.

How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this:

www/index.html|26 col 5 error| <ion-pane> is not recognized!
...
www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app"
Naiad answered 21/5, 2015 at 6:57 Comment(2)
For the millionth time, Syntastic is a frontend that doesn't do any syntax checking by itself. All the syntax checking is done by external tools so either you find a way to tell those external tools about your specific requirements or you find another external tool that satisfies them.Clew
Thanks for the education. I've updated the question to reflect this.Naiad
N
10

The solution for me was to set the following:

let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]
Naiad answered 21/5, 2015 at 7:56 Comment(2)
It's probably better to add ion-pane and the like to g:syntastic_html_tidy_blocklevel_tags, and only ignore the errors about attributes. You might also want to try HTML Tidy for HTML5 instead of tidy (cf. syntastic's wiki).Choreodrama
just curious, have you found any better solution up to this day?Mattins

© 2022 - 2024 — McMap. All rights reserved.