[TxMt] Editing text inquiry

Thomas Aylott textmate at subtlegradient.com
Wed Oct 31 17:15:35 UTC 2007


On Oct 31, 2007, at 1:09 PM, Steve Finkelstein wrote:

> Hi all,
>
> Rudimentary editing inquiry here. I need to be able to append
> alt="foo" to about 30 <img> tags on my HTML document which resembles
> the following:
>
> 				      <img width="30" height="30" src="<?= base_url()
> ?>/media/img/patientedit.png">
>
> Is there a quick way to do this in TextMate?
>
> Cheers,
>
> - sf


Sounds like you just need a simple search and replace.
Unless those alt tags need to be unique or something.

SEARCH:
<img width="30" height="30" src

REPLACE:
<img alt="foo" width="30" height="30" src


—Thomas Aylott – subtleGradient—




More information about the textmate mailing list