开发者

How can I add extra html tags to Syntastic plugin for Vim?

开发者 https://www.devze.com 2023-04-11 03:30 出处:网络
I use a CMS which uses custom tags that are parsed before everything on the page, for example. This can appear in the standard file formats for .html, .php

I use a CMS which uses custom tags that are parsed before everything on the page, for example. This can appear in the standard file formats for .html, .php

<v:img for="portfolio" />

and it will create an an image based on all the specifications in the backend..

also things like

<v:php>
// Code here is different than <?php ?> which is rendered after v:php
</v:php>

and

<v:collection for="blog"&g开发者_JAVA技巧t;
  <h1><v:text for="title" /></h1>
</v:collection>

Thats it as far as format goes, there are hundreds of tags but they are either closed or self closed just like html.

I'm trying to add them to the Syntastic plugin for Macvim so I don't get unnecessary errors but this is a bit over my head :/


In /path/to/syntastic/syntax_checkers/html.vim, look at line 26 let makeprg="...".

You can see that there are a bunch of new HTML5 tags added to the tidy command, you should try to add your tags there.

See the tidy documentation if there are any caveats.

0

精彩评论

暂无评论...
验证码 换一张
取 消