Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ruby -e'
  2. require "jcode"
  3. $KCODE="U"
  4. require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/doctohtml.rb"
  5. require "#{ENV["TM_SUPPORT_PATH"]}/lib/progress.rb"
  6. unit = ENV.has_key?("TM_SELECTED_TEXT") ? "selection" : "document"
  7. TextMate.call_with_progress(:message => "Creating HTML version of #{unit}…") do
  8. print document_to_html( STDIN.read, :include_css => true )
  9. end'|textutil -convert rtf -stdin -stdout|pbcopy
  10. echo 'Done!'
Add Comment
Please, Sign In to add comment