Community
Participate
Working Groups
in jdt.ui's plugin.xml, there's a declaration <key sequence="M1+M2+\" contextId="org.eclipse.jdt.ui.javaEditorScope" commandId="org.eclipse.jdt.ui.edit.text.java.remove.block.comment" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/> Syntax coloring is broken after the "\": String literals are rendered as tags and vice versa.
Beside this, when additional xml content is copy-pasted into the editor, editor coloring just turn plain black for this content. You have to change something (put a space and then delete this space) for each line to trigger that XML editor apply reasonable coloring into newly added content.
"\" is considered as an escape character by the XMLScanner responsible for syntax highlighting. I'm not sure it makes senses in the XML world : if you want to say "\"" you'll use """
Created attachment 92098 [details] Patch Get rid of escape character
Created attachment 92099 [details] mylyn/context/zip
(In reply to comment #1) > Beside this, when additional xml content is copy-pasted into the editor, editor > coloring just turn plain black for this content. You have to change something > (put a space and then delete this space) for each line to trigger that XML > editor apply reasonable coloring into newly added content. > I already noticed that too. Could you please file a new bugzilla for this one ?
seems reasonable, let me ponder this one for a bit first.
Thanks again for the quality patch Benjamin!