Hi Alex,

Does Vip recognize different file types?

My end goal is for C/Javascript comments to be rendered properly when those
files
are being edited. I think this would only involve a substitute 'markup'
function which
swaps PL comment syntax for C comment syntax to be executed when Vip is
called
with a C/JS file?

Maybe the alternate 'markupC' could be called through 'load>'? Something
like,

   (dm load> ()
      (if (is-c-or-js-file? (: file))
         (markupC
            (=: text
               ... )
         (markup   # else markup as normal
            ... )
         ... )

I haven't made a serious attempt to get it working yet, would the above be
headed in
the right direction?

Thanks,
Erik

Reply via email to