User login

Using TextWrangler for Drupal coding: changing tab to two spaces

Drupal coding standards call for two spaces per tab. Any text editor with a bunch of programming options must be able to set the default tab spacing, right?

In TextWrangler's case, yes, but if you searched here before even trying its user interface, you'll be glad you did. It's not anywhere a sane person, or even a rabid rhesus monkey, would think to look.

It's here:

TextWrangler Preferences › Editor Defaults

OK, so far so good. Now, the tab setting is inside the last option on this form, "Default font: "

spaces per tab embedded in default font option

You have to click set, and the number of spaces for a tab is at the bottom.

Enjoy coding to Drupal standards more easily.

The Agaric Design Collective hopes you found this page because you were searching for "textwrangler set tab default" and not out of extreme boredom, and that it was helpful to you.

Drupal coding standards call for two spaces per tab. Any text editor with a bunch of programming options must be able to set the default tab spacing, right? In TextWrangler's case, yes, but if you searched here before even trying its user interface, you'll be glad you did. It's not anywhere a sane person, or even a rabid rhesus monkey, would think to look. It's here: TextWrangler Preferences › Editor Defaults OK, so far so good. Now, the tab setting is inside the last option on this form, "Default font: " spaces per tab embedded in default font option You have to click set, and the number of spaces for a tab is at the bottom. Enjoy coding to Drupal standards more easily. The Agaric Design Collective hopes you found this page because you were searching for "textwrangler set tab default" and not out of extreme boredom, and that it was helpful to you.

Comments

Thank you

Thank you so much! I've been looking for this off and on in Textwrangler for ... years!

Thank you again

Hi,
This is just super info, I guess TextWrangler should publish this in help

Thanks

Thank you!

I've wanted to use textwrangler instead of some other editors, but 4-space tabs was a dealbreaker for me (I use python and I like all indents to be 2 spaces). Now I can use it, thank you!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.