[TxMt] TextMate Create HTML from Selection

Allan Odgaard throw-away-1 at macromates.com
Fri Nov 17 22:22:18 UTC 2006


On 17. Nov 2006, at 12:33, marios wrote:

> I've been poking again around in the bundle editor.(Yes the Bundle
> editor is very addictive)
> The default command : TextMate > create HTML from selection is very
> convenient.
>
> However, I had the Idea, to have the same thing as a drag command
> (without the styles), so one could just write a post and drag the code
> snippets in from The drawer ( file extension code of something)
>
> I tried to replace the variable content of TM_SELECTED_TEXT with
> something like :
>
> `cat "TM_DROPPED_FILE"`, but it doesn't output anything just the HTML
> tags until the pre tags.
>
> Could it be done easily, using the same requires in RUBY.

Could you post what you tried?

If I understand you, you want to have the contents of a file  
inserted, when you drag it to the editor window. But does it not  
already do that?




More information about the textmate mailing list