well - yes, that does work - but it's not the effect I want... I like to have my closing tags on the same line etc. plus if there is an indent at the beginning of the paragraph then it ends up creating space example:
Now is the time for all good men. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo.
ends up becoming:
<p> Now is the time for all good men. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean odio nibh, euismod a, lobortis in, laoreet eu, eros. Praesent lorem risus, commodo sit amet, viverra in, sagittis nec, justo. </p>
with the spaces in the beginning... and yes - I could go through and shift everything left etc but when I'm working with large text files it helps to be able to see where the paragraphs are etc etc.
also and this is even more of a pain - if I have the cursor in the closing tag and then try to 'Select Paragraph' I find that I can only select the closing tag itself - because it has enclosed a return inside the tags - at least I think that's why...
anyway - even if for just cosmetic reasons I'd still like there to be a way to select just to the first and last character of a paragraph... anyone out there handy with Ruby/PHP/Source want to make me a Command or Macro?
cheers, bennett
On Jul 21, 2010, at 7:21 PM, Paul McCann wrote:
bennett von bennett asked...
notice that the </h3> tag is on the next line - obviously this is undesirable and it slows down my coding way too much to have to then manually take my cursor over and insert a return after the closing tag - so much that it is obviously not worth it.
so for the sake of my being able to write readable code how do I accomplish this?
You can just hit the tab key after you've finished entering the tag name (h3 in your example). This takes you to just after the closing tag, and a simple return in there does what you're seeking.
Cheers, Paul
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate