Loading ...
Sorry, an error occurred while loading the content.
 

Bug in 2html.vim

Expand Messages
  • Michael Geddes
    Message 1 of 1 , Nov 21, 2001
      > Silly bug - not tested. Found it by doing a 2html on the highlight
      > test.
      >
      > //.
      >
      > function! s:HtmlOpening(id)
      > let a = ""
      > if synIDattr(a:id, "inverse")
      > " For inverse, we always must set both colors (and exchange
      > them)
      > let x = s:HtmlColor(synIDattr(a:id, "fg#", s:whatterm))
      > let a = a . '<span style="background-color: ' . ( x != "" ? x :
      > s:fgc ) . '">'
      > let x = s:HtmlColor(synIDattr(a:id, "bg#", s:whatterm))
      > ! let a = a . '<font color="' . ( x != "" ? x : s:bgc ) . '">'
      > else
      > let x = s:HtmlColor(synIDattr(a:id, "bg#", s:whatterm))
      > if x != "" | let a = a . '<span style="background-color: ' . x
      > . '">' | endif
    Your message has been successfully submitted and would be delivered to recipients shortly.