[TxMt] Recreating bbinclude in TextMate?
Brad Choate
bchoate at gmail.com
Wed Aug 9 07:09:09 UTC 2006
I've just checked in support for whatever comment delimiters that are
supported by the language of the file being edited. So... for
instance, in a LaTeX document, you can say...
% #tminclude "/path/to/include"
% end tminclude
Or, in a CSS document...
/* #tminclude "/path/to/include" */
/* end tminclude */
The placeholder syntax itself is the same for all documents... "#name#"
For now, the include/update commands are still bound to the HTML
bundle, but that may change if this becomes more popular I suppose.
You can select it manually through the HTML bundle, or use the cmd
+ctrl+t "select bundle item" window to find the commands (type "API"
or "UPDOC" in caps to find these commands irrespective of the active
scope).
-Brad
On Aug 7, 2006, at 12:21 PM, Peder Axensten wrote:
> On 5 aug 2006, at 05.29, James Edward Gray II wrote:
>
>> On Aug 4, 2006, at 11:53 AM, Brad Choate wrote:
>>
>>> I had thought of generalizing it further... but what other
>>> documents would be likely to use it? Most scripting languages
>>> should be using their native include/require commands instead of
>>> something like this, IMHO.
>>
>> Hmm, you do have a very good point there. Perhaps it isn't needed.
>
> I would certainly find very good use for it in both LaTeX and
> Matlab. There are ways to call other files, but often I need to
> deliver everything in one file. Oh, I'd love it!
>
> BTW, the BBEdit placeholder #relative# is ignored?
>
> /Peder Axensten
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list