I like to study programming and database query codes in microsoft word due to ability to format and color the different segments as I see fit, to better understand what's going on.
Unfortunately the problem, arises when I try to copy the code from Word to the corresponding IDE (MySQL based); which doesn't have any auto formatter built in to. The program I'm copying the microsoft word text to, can't recognize tab indentation made within Word as well.
Is there a VBA code or similar, that can treat indentations created with word's ruler tool (within green border of the picture) as individual whitespaces, so that when I copy it to the corresponding IDE, each lines have their desired indentation? Another reason I didn't use or do not prefer tab indentation, is that it doesn't work when the code/text is in a table object, as seen by the black border surrounding the code.
Image of text I'm dealing with:
What it looks like when I paste it to a SQL ide program's text editor: