Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby -e'
- require "jcode"
- $KCODE="U"
- require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/doctohtml.rb"
- require "#{ENV["TM_SUPPORT_PATH"]}/lib/progress.rb"
- unit = ENV.has_key?("TM_SELECTED_TEXT") ? "selection" : "document"
- TextMate.call_with_progress(:message => "Creating HTML version of #{unit}…") do
- print document_to_html( STDIN.read, :include_css => true )
- end'|textutil -convert rtf -stdin -stdout|pbcopy
- echo 'Done!'
Add Comment
Please, Sign In to add comment