Assign duplicated assignments to dup assignment types, fix text editor styling