When editing an XML file and pasting text from the clipboard, the text is inserted in a formatted way, meaning it keeps its font and font attributes. I noticed because I copied a notification name from the CHM help and it looked strange. For testing purposes I formatted some text in Word and inserted it into the editor and it looks like this:

Save the file and re-open it and everything is fine again.
Interesting thing is, this can't be done with a .hws script file, just with an XML file. So maybe formatted inserting could be deactivated for XML files as well...