On Feb 3, 9:41 pm, Bee <[email protected]> wrote: > > What exactly do you want to accomplish? > > html syntax validation. >
Well, yes...but what do you want Vim to do, to help you in this task? > I would like a syntax check showing where html source is invalid. > So, you want to run a command and see a list of all the errors, with line numbers to jump to? This would be the "quickfix" functionality of Vim, see :help quickfix for details. You'd just need to set up your makeprg and errorformat options correctly, probably by finding and using a "compiler" plugin for your particular validator application. A quick web search for "css validator vim quickfix" gave me these: http://blog.whatwg.org/vim-checker http://wiki.whatwg.org/wiki/IDE You may find better ones on your own. > I know sites like <http://www.w3schools.com/site/site_validate.asp> > but it would be nice if vim could do this. vim already does html > syntax coloring, I just have not found syntax validation. > > I have been using BBEdit, a Mac only text editor. It has builtin html > syntax checking and syntax coloring that is very good. I prefer > working in vim and vim's css syntax coloring is better. > Now you seem to imply that you want Vim to do "on the fly" checking for syntax errors, and highlight them as you type. I know plugins exist to do this for some languages, and have used one for Matlab scripts (search for mlint.vim on www.vim.org to find it if you're interested), but in general this is not something that is very common in Vim. Try searching for "vim html ftplugin" or similar to see what sorts of things are out there. Buried in the results somewhere might be an on- the-fly syntax checker, but I doubt it. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
