In the Stack Overflow text editor we are not able to add tab characters -- pressing Tab will instead switch to the next text field (for entering tags). I checked the CKeditor demo, and it does the same thing. Is it possible for the editor to provide the option to add tab characters within the editor?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
migrated from stackoverflow.com Oct 3 '11 at 22:07
This question came from our site for professional and enthusiast programmers.
It is probably designed that way. But it does support tabs in a way.
But you can copy and paste tabs like here: tab tab tab But they won't show as HTML treats tabs as whitespaces so basically they will appear as spaces.
Because code is put in pre (preformated) tags that will display tabulations and will use a fixed width font.
So if you want to display preformated text add 4 spaces at the beginning of each line and there you will have access to tabulations.