The Mental Ray Syntax Highlighter modules makes it easier to compose and edit .mi files.