Changeset 5660

Show
Ignore:
Timestamp:
01/28/08 04:53:01 (5 years ago)
Author:
drry
Message:

lang/ruby/vimcolor/README: documentation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/vimcolor/README

    r4877 r5660  
    44A ported version of Perl's Text::VimColor to Ruby. 
    55 
    6 This library tries to markup text files according to their syntax using vim. 
     6This library tries to markup text files according to their syntax using Vim. 
    77It can be used to produce web pages with pretty-printed colourful source code samples. 
    88 
     
    1414 
    1515   require 'vimcolor' 
    16     
    17    vc = VimColor.new 
    18    xml = vc.run_file("foo.rb",  
    19                      {:filetype => 'ruby',      #default: auto detect 
    20                       :encoding => 'utf-8'},    #default: utf-8 
    21                      :html,                     #can be :xml, :html, :ansi, :array 
    22                      'syntax')  # extra option for HTML formatter(css class prefix) 
     16 
     17   vc   = VimColor.new 
     18   html = vc.run_file("foo.rb", 
     19                      {:filetype => 'ruby',     #default: auto detect 
     20                       :encoding => 'utf-8'},   #default: utf-8 
     21                      :html,                    #can be :xml, :html, :ansi, :array 
     22                      'syntax')  # extra option for HTML formatter(css class prefix) 
     23 
     24   xml  = vc.run_file("bar.vim", 
     25                      'vim',                    #filetype as String instead of Hash 
     26                      :xml) 
    2327 
    2428 
     
    4044* http://search.cpan.org/~geoffr/Text-VimColor-0.11/lib/Text/VimColor.pm 
    4145 
    42 Svn repository (hosted by coderepos.org) 
     46Subversion repository (hosted by CodeRepos.org) 
    4347 
    44 * http://coderepos.org/share/browser/lang/ruby/vimcolor 
     48* http://svn.coderepos.org/share/lang/ruby/vimcolor 
    4549 
    4650