Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I indent properly with TextMate?

I'm reading Michael Hartl's Ruby on Rails 3 Tutorials. I just came across my first example of code (HTML really) being long enough to wrap to a second line. Here's what it looks like in my TextMate...

My TextMate

The lines between the paragraph tags aren't lined up below the "a href" (as I'm thinking they should be).

Now here is the same code taken from Michael's tutorial...

enter image description here

In Michael's example the same lines are perfectly lined up under the "a href".

How can I properly indent my code in TextMate to look as neat as Michael's does here?

Thanks!

Eddie

like image 730
Eddie Avatar asked Dec 10 '25 09:12

Eddie


1 Answers

Go to View and turn softwrap off, then put linebreaks and tabs in manually.

like image 50
Ant Avatar answered Dec 12 '25 02:12

Ant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!