Correct. This translates to “my teacher doesn’t like formatting.”
I'm no expert on German, but that looks fine to me. All the words are correct but I'm not entirely sure about the cases/case endings. It looks pretty good to me though. Sorry if I couldn't be a better help :)
Tendrías cinco años, porque está diciendo si hubieras NACIDO lo que significaría que es en ese momento hace cinco años. Espero y te ayude en mi punto de vista es algo así :)