Sometimes I post some code here. To indent code I use tabs.
Code:
When you try and copy and paste it the comment above you will find that the instead of a tab you get a bunch of spaces. I am sure that the person who wants to integrate the posted code will have a tougher time doing such in clean-way. Fortunately (in vim) pressing the = key fixes indentation quickly however not everyone uses vim. I am wondering why this happens. Even more interesting when I edit my post the tab is preserved.
Code:
/*There was a tab before this comment */
When you try and copy and paste it the comment above you will find that the instead of a tab you get a bunch of spaces. I am sure that the person who wants to integrate the posted code will have a tougher time doing such in clean-way. Fortunately (in vim) pressing the = key fixes indentation quickly however not everyone uses vim. I am wondering why this happens. Even more interesting when I edit my post the tab is preserved.