I have an html file containing <img src="dvipsnames.png"/>
The image renders correctly in the browser and also in TextMate's builtin preview.
However, if I pipe the same file to Textmate.exit_show_html the image does not show.
How should I specify the path to the picture so that Textmate.exit_show_html can find it?
Thanks Piero
On 23 May 2009, at 12:35, Piero D'Ancona wrote:
I have an html file containing <img src="dvipsnames.png"/>
The image renders correctly in the browser and also in TextMate's builtin preview.
However, if I pipe the same file to Textmate.exit_show_html the image does not show.
How should I specify the path to the picture so that Textmate.exit_show_html can find it?
Either using <base href="file:///path/where/image/is"> or using an absolute path in the <img> tag.
Note: you need 10.4.11+ and latest TM for ‘file:’ to work, if older, use ‘tm-file:’.