Christian Brabandt wrote: > Hello Ben, Bram and list, > :TOhtml does not take the spell checking info into account. Therefore, > here is a patch, that makes 2html aware of the syntax highlighting for > SpellBad, SpellRare, SpellLocal and SpellCaps > > It does this by using a simple gif file and using a css property of > 'background: url(file), bottom repeat-x' For ease of use, it uses the > gif file base64 encoded inside the html file, so no separate image file > is needed in addition to the generated html file. The only problem is, > the colors are fixed to the ones, vim uses with the default color scheme > (e.g. red curly line for SpellBad, blue curly line for SpellCap, magenta > colored for SpellRare and cyan colored for SpellLocal). > > All words that need to be highlighted using one of the Spelling > highlighting will get a <span id=SpellBad> tag around it. > > The gif file was take away from the tinymce¹ project (which is LGPL > licensed) and color converted to all needed colors by me and finally > base64 encoded.
I appreciate the effort that you made this work. But I doubt users will want to see their spelling mistakes in the produced HTML file. At least the default should be off. And a remark in the docs about how to use it. -- How To Keep A Healthy Level Of Insanity: 12. Sing along at the opera. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
