[TxMt] Re: Generate new HTML doc from parsed PHP?
Sven Axelsson
sven.axelsson at gmail.com
Thu Oct 23 21:36:31 UTC 2008
2008/10/23 Michael Reiner <mr at radarseven.com>
> Most excellent, thanks Sven!Didn't know this functionality existed in a
> Terminal session!
> This is exactly what I needed.
>
> Now I just need to figure out how to write a simle bundle to automate the
> process a bit,
> i.e. create a bundle that will output the current file to an HTML file with
> the same name and in the same directory.
> Any insight or resources that could point me in the right direction?
>
Try putting this in a text file:
php "$1" > `dirname "$1"`/`basename "$1" php`html
Save it under some convenient name, like do_convert
call chmod +x do_convert to make it executable
and use it like:
do_convert some_file.php
that will save some_file.html in the same directory as the input file
--
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20081023/22ea6af5/attachment.html>
More information about the textmate
mailing list