Yes I believe it can be edited in a text editor but I'm not sure of the layout protocol. Should be easy enough to have a look at an existing definition and work out what needs to be where.
I've always done my editing via the ins file definition panel within Sonar which is easy enough.
Look on the bright side, you've only got to do it once.