[TxMt] Web preview is a cool idea but useless?

Chris Thomas chris at m-audio.com
Tue Feb 22 21:15:49 UTC 2005


On Feb 21, 2005, at 9:25 PM, Bruno Bronosky wrote:

> I think that might have been a little harsh.  What I mean is this:  
> The web preview works awesome for real time viewing of html code.  I 
> am amazed.  Really.  But, I don't know anyone who write HTML anymore. 
>  Sometimes to make a Smarty Template, I'll write HTML and then 
> retrofit it, but usually not.  The web preview needs to be able to 
> read from a valid URI, like 
> http://127.0.0.1/projects/clientX/index.php

If you have Ruby 1.8.2 installed, you can preview a selected URL with a 
command such as:

ruby << 'END'
     require 'open-uri'
     open(ENV['TM_SELECTED_TEXT']) {|f| puts f.read}
END






More information about the textmate mailing list