Hi Ken!

On Sa, 12 Okt 2013, Ken Takata wrote:
> 2013/07/31 Wed 4:56:39 UTC+9 Christian Brabandt wrote:
> > Attached is a patch to try out. It seems to work for me with GTK and
> > Motif Gui. I am a Unix gui and can't say for sure the code for Windows
> > and Mac is actually correct and works, though.
> 
> I checked your patch on Windows. It works fine.
> I checked it with the following process:
> 
> > gvim -N foo.html
> :syn enable
> :syn region htmlStrike start="<del\>" end="</del>"me=e-6 contains=@htmlTop
> :hi def htmlStrike term=strikethrough cterm=strikethrough gui=strikethrough
> i<del>foo</del>
> 
> 
> > Secondly, I am unsure about the changes to term.c and term.h
> > I don't know, if these changes are actually needed, so I simply took the
> > undercurl code as an example and changed it so it would fit for
> > strikethrough.
> 
> I think it is better to add term cap entries. Currently, termcap doesn't
> support strikethrough attributes, so we have to use our own attribute names.
> (E.g. 't_Ts'/'t_Te' or 't_SS'/'t_SE')
> I also think that a new flag (e.g. 't' or 'S') should be added in the
> 'highlight' option.
> 
> I and Hayaki Saito updated your patch to add them. After applying this patch
> and setting escape sequences properly,
> 
>     let &t_Ts="\e[9m"
>     let &t_Te="\e[29m"
> 
> some terminals (*) will show strikethrough lines.
> 
> (*)
>  RLogin: http://nanno.dip.jp/softlib/man/rlogin/ (Japanese)
>  pangoterm: https://launchpad.net/pangoterm/
> 

Very nice, thanks!

regards,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  Rod Ation 

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui