<p><img src="http://ranchero.com/images/marsedit/marseditIconLarge.png" alt="marsedit icon"></p>

<p>
  in <a href="http://ranchero.com/marsedit/">marsedit</a> (made by <a href="http://ranchero.com/">ranchero software</a>) you can insert HTML tags using keyboard shortcuts. some of which are preset, some you can set yourself. you can also, add your own html tags and optionally keyboard shortcuts for them.
</p>

<p><a href="http://www.flickr.com/photos/veganstraightedge/153385662/" title="Photo Sharing"><img src="http://static.flickr.com/64/153385662_0eb06839be_o.jpg" alt="marsedit toolbar.jpg"></a></p>

<p>i've made custom tags for <code>&lt;p&gt;, &lt;ul&gt; / &lt;li&gt;, &lt;dd&gt; / &lt;dt&gt;, and &lt;img&gt;</code>. which i love and use all the time. but my beef is with my <code>&lt;img&gt;</code> tag setup. the thing is marsedit has this really cool functionality when dealing with links which gave me the idea for this <code>&lt;img&gt;</code> thing.</p>

<p><a href="http://www.flickr.com/photos/veganstraightedge/153385668/" title="Photo Sharing"><img src="http://static.flickr.com/48/153385668_85b5534a84_o.jpg" alt="paste link.jpg"></a></p>

<p>see? you can add a new link on some text and it will allow you to type it in, or you can add a new link to some selected text with the contents of the clipboard. i want to be able to do that with images. but when you create a custom tag, you can specify its opening text and, optionally, its closing text. but no other data or context.</p>

<p>
  <a href="http://www.flickr.com/photos/veganstraightedge/153385651/" title="Photo Sharing"><img src="http://static.flickr.com/66/153385651_39eb954d68_o.jpg" alt="custom tags"></a>
</p>


<p>that i'm aware of.</p>

<p>i would like to be able to do something like you can when modifying your preview template. </p>

<p><a href="http://www.flickr.com/photos/veganstraightedge/153385678/" title="Photo Sharing"><img src="http://static.flickr.com/75/153385678_564b9c5a08_o.jpg" alt="preview template.jpg"></a></p>


<p>i wish i could insert <code>#CLIPBOARD#</code> into my custom tag and have it automagically appear when i insert said tag.</p>

<p><a href="http://inessential.com/">brent simmons</a>, i'm looking at you.</p>

<p>ps. this is partially, an experiment in lazy web. to see if i can resolve this without directly emailing anyone or going to any boards.</p>


<p>pps. and, yes, i recognize the irony in writing a post about a feature request where i have to do it 5 times the hard way. very funny.</p>

<p>Song playing in iTunes while i wrote this post: <em>definitions</em> by blackstar.</p>

  

        Well, actually, you can do that stuff in ecto. It takes %@ as the wildcard for the clipboard and applies the tag to the clipboard. If you need the selected text twice use the %* as the wildcard for the selected text. Maybe MarsEdit'll have that in a next version.
      
        Good thinking. We do plan to add #clipboard# support in the next version of MarsEdit.
      
        We'll be adding support for #CLIPBOARD# in a future version of MarsEdit.