[TxMt] How can I set a default line start for block comment contents?
Ciarán Walsh
ciawal at gmail.com
Fri Apr 25 17:08:51 UTC 2008
On 25 Apr 2008, at 15:34, Ian Potter wrote:
> On Apr 25, 2008, at 1:28 AM, Allan Odgaard wrote:
>> On 23 Apr 2008, at 17:57, Thomas Allen wrote:
>>
>>> […]
>>> I can't find a resource of all TM env. vars, but the PHP comments
>>> preference
>>> includes values of /* and */ for TM_COMMENT_START_3 and
>>> TM_COMMENT_END_3,
>>> respectively. What var can define my block comments' body?
>>
>> The generic Toggle Comment command is not designed to support the
>> configuration of such style. But it should be fairly simple to
>> create an overload which is only active in PHP mode, you can even
>> write it in PHP: http://ciaranwal.sh/2008/04/04/textmate-tip-using-php-for-commands
>> :)
>>
> I found this snippet a while ago:
>
> ${TM_CURRENT_LINE/(.*\*\/$)|.*?(\/\*(?!.*\*\/)).*|.*/(?1:
> :
> (?2: )* )/}
> Activation: ↩
> Scope Selector: source.php comment.block
This is included by default in the PHP bundle…
More information about the textmate
mailing list