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

Re: Source code to HTML

Expand Messages
  • Markus Osterhoff
    ... My guess is that when vim reads your source code via stdin, vim - the filetype is not recognized. ... Try open the file directly, this works for me: vim
    Message 1 of 3 , Mar 30, 2011
      * Grigory Sarnitskiy <sargrigory@...> [110330 12:01]:
      > Hello, I'm trying to produce highlighted html from console.
      >
      > cat MyFile.input | vim - +TOhtml '+w out.html' '+qall!'
      >
      > However, resulting html is not highlighted, but in Vim and Cream highlighting works.
      My guess is that when vim reads your source code via stdin,
      vim -
      the filetype is not recognized.

      > I've never used vim before, but it is the only editor supporting syntax highlighting for the language I need (maybe there is something for emacs, but not sure).
      Try open the file directly, this works for me:

      vim MyFile.input +TOhtml '+w out.html' '+qall!'


      Regards,
      mo

      --
      You received this message from the "vim_use" 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
    Your message has been successfully submitted and would be delivered to recipients shortly.