sent 07:19:31 05 April 2011, Tuesday
by Ben Fritz:
> 1. "Normal special character coloring": what does this mean?
That mean that special characters are highlighted with SpecialKey highlighting,
not with surrounding syntax group highlighting. TOHtml just calls `strtrans()'
in `s:HtmlFormat', it does not highlight with SpecialKey.
> 2. "Background color for the whole line with differencies and folds,
> not just for text": how is this accomplished? This sounds nice.
If I remember correctly, it is just a style of the outer div that contains the
whole line. It is implemented only for html specification: BBCode on unixforum
does not support background colors and LaTeX specification is low priority for
me.
> Item (2) above also reminded me of an annoying quirk of TOhtml, that
> deleted lines in a diff fill out to the width of the Vim application
> window or something huge like that, so that there are always
> horizontal scroll bars on a side-by-side diff.
Nothing special: I just made difffiller length by default equal to length of the
longest line. It is overridable.
There are some additional items in my TODO list:
0. Porting plugin to frawor (when it will be finished). Blocks all other tasks
excluding bug fixes.
1. 'fillchars' option support
2. signs support
3. Make foldcolumn, linenr and signs columns use <input> hack so that they will
be uncopyable (demo: http://basis.et-lab.ru/habrahabr/copy/index.html,
article: http://habrahabr.ru/blogs/webdev/114322/ (Russian)). Unlike other
solutions that does not require JavaScript and does not break if lines wrap.
None of these is currently implemented by TOHtml.
Original message:
> On Apr 4, 12:15 am, ZyX <zyx....@gmail.com> wrote:
> > Reply to message «non-interactive vimdiff to stdout»,
> > sent 01:20:44 04 April 2011, Monday
> >
> > by geronime:
> > > I would like a non-interactive output of "vimdiff file1 file2" to
> > > STDOUT or a tip to some diff program with similar formatting to
> > > vimdiff.
> >
> > If you want to get a syntax-coloured diff, you can try my plugin
> > format.vim
>
> > (http://www.vim.org/scripts/script.php?script_id=3113). Using it in batch
mode:
> This is also supported in the standard TOhtml plugin starting with the
> Vim 7.3 version of the runtime files. I may borrow some of the code
> for 'listchars' to put in at some point.
>
> Somewhat off-topic, on the plugin page, you list several features of
> the plugin over current or past TOhtml functions. I'm curious about
> the following:
>
> 1. "Normal special character coloring": what does this mean?
> 2. "Background color for the whole line with differencies and folds,
> not just for text": how is this accomplished? This sounds nice.
>
> Item (2) above also reminded me of an annoying quirk of TOhtml, that
> deleted lines in a diff fill out to the width of the Vim application
> window or something huge like that, so that there are always
> horizontal scroll bars on a side-by-side diff. Does your plugin handle
> this better? If so, how? This is on my TODO list in TOhtml but it's
> pretty low priority for me.
No comments:
Post a Comment