I finally found the problem with EditPlus relating to screwed up layout.....it is because I have the formatting switched on so it indents after { ....it must insert something weird to make it indent as it screws up the layout in wordpad, however if I backspace to the beginning of the line and then press the space bar back the the original position, it displays properly...weird.