The Notepad++ Mental Ray Syntax Highlighter module makes it easier to compose and edit .mi files.