void () { FileType[] MARKUP_FILE_TYPES = {XmlFileType.INSTANCE, HtmlFileType.INSTANCE, XHtmlFileType.INSTANCE}; mySettings.setDefaultRightMargin(60); for (FileType fileType : MARKUP_FILE_TYPES) { checkWrapOnTyping( fileType, "12345", "<my-tag-with-long-name attr='this.is.my.attribute.that.is.already.<caret>rather.long'>\n" + "</my-tag-with-long-name>", """ <my-tag-with-long-name\s attr='this.is.my.attribute.that.is.already.12345<caret>rather.long'> </my-tag-with-long-name>""" ); } }