How can I write a tab character in a text field shown by safari in an HTML page?
I tried using the tab key with the modifier keys, but I didn't get Safari to write a tab character.

Is it possible to do it? If it is possible, how can I do it?

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted

If the text field you're working with doesn't have any JavaScript features to assist with the formatting of text (eg. the search box or the comment box here on Super User) you can type Control-Q and then Control-I. However, extra whitespace is ignored unless you're using <pre> or <code> tags.

There is a similar question here on Super User (Typing the tab character in browser text boxes) that addresses another way to do this with Firefox.

link|improve this answer
feedback

Easy/dumb fix:

  1. Open a text editor
  2. Press TAB
  3. Select and copy the tab character
  4. Paste into text field
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.