Hmm, I'm not sure how I could. That file seems to be mostly how the editor treats the files that are in the editor. Rather than how the window treats compiler errors.
Python also has language-specific code in [msgwindow.c](https://github.com/geany/geany/blob/master/src/msgwindow.c#L951), as do many of the other supported languages.