[TxMt] Re: Includes?

Guido Governatori guido at itee.uq.edu.au
Thu Aug 28 01:02:04 UTC 2008


On 28/08/2008, at 9:32 AM, Patrick James wrote:

> Hi
>
> I'm not as proficient with text editors as many on this list.
>
> BBEdit has a very handy thing called "Includes"
>
> The easiest way for me to describe them is simply to copy and paste
> from BBEdit help:
>
>       An include file, or just an "include," is a special form of
> placeholder
>       whose substitution happens to be the contents of another file.
> If you
>       have used C or certain other programming languages, you may
> already be
>       familiar with the concept. Using includes, you can reuse
> standard bits
>       of text content or HTML markup in several templates or clippings
>       entries without having to revise all of those individual files
> whenever
>       you revise the included text.
> Apologies for not only mentioning BBEdit but pasting in something from
> the help :)
>
> The reason I want to use includes like this now is that I have quite a
> large web-site which uses PHP includes a lot.
>
> I have been asked to put this web-site on a CD and of course the
> problem is that a CD doesn't have any PHP.
>
> So, as you have probably guessed, I need to convert the web-site
> changing all the PHP includes into the actual chunks of HTML in the
> files supplying those PHP includes.
>
> I know that with BBEdit I would do a find/replace changing the PHP
> includes in BBEdit includes and do it that way.
>
> However I haven't used BBEdit for quite a while now because I tend
> always to use TextMate now of course.
>
> I'm wondering if I can do this in TextMate?
>

The HTML bundles has a "add persistent include" feature.

All the best

Guido
--
Dr Guido Governatori
http://www.governatori.ner http://www.governatori.net/TextMate



More information about the textmate mailing list