Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » text copy/paste background annoying problem
text copy/paste background annoying problem [message #231462] Mon, 18 May 2009 03:57 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0039_01C9D79F.135131F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all, I have a question on editor (StructuredTextEditor) COPY/PASTE

I have extended this editor to use it in my rcp application ... honestly =
I have seen the same problem around eclipse ...

=20

The problem is

=20

Let's say that this editor have got the following text displayed:

=20

<?xml version=3D"1.0" encoding=3D"utf-8"?>

<privileges/>

=20

When u copy and paste this text (SELECT ALL) in an editor that support =
colors and formatting it keeps the right colors and formatting. Perfect.

=20

The question is. why if I just select a piece of this text and copy it =
somewhere else it will come out with a dark blue background?

=20

encoding=3D"utf-8"



=20

Ciao=20

Kar

------=_NextPart_000_0039_01C9D79F.135131F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dunicode">
<META content=3D"MSHTML 6.00.6001.18226" name=3DGENERATOR></HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" =
leftMargin=3D0=20
topMargin=3D0 CanvasTabStop=3D"true" name=3D"Compose message area">
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DCalibri>Hi all, I have=20
a question on editor (</FONT><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: silver; COLOR: black; FONT-FAMILY: =
'Courier New'; mso-highlight: silver">StructuredTextEditor</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">)=20
COPY/PASTE<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">I =
have=20
extended this editor to use it in my rcp application ... honestly I have =
seen=20
the same problem around eclipse ...<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">The =
problem=20
is<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">Let's say that=20
this editor have got the following text displayed:<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal=20
style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">&lt;?</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier =
New'">xml=20
</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier =
New'">version</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">"1.0"=20
</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier =
New'">encoding</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">"utf-8"</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">?&gt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal=20
style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">&lt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier =
New'">privileges</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">/&gt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">When =
u copy=20
and paste this text (SELECT ALL) in an editor that support colors and =
formatting=20
it keeps the right colors and formatting. Perfect.<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">The =
question=20
is. why if I just select a piece of this text and copy it somewhere else =
it will=20
come out with a dark blue background?<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: #7f007f; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">encoding</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: black; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: #2a00ff; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">"utf-8"</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt">
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p><FONT=20
face=3DCalibri color=3D#000000 size=3D3></FONT></o:p></SPAN></P><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p><FONT=20
face=3DCalibri color=3D#000000 size=3D3></FONT></o:p></SPAN>&nbsp;
<P></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">Ciao=20
</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">Kar<o:p></o:p></SPAN></P></BODY></HTML>

------=_NextPart_000_0039_01C9D79F.135131F0--
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Apache Http Server Integration
Next Topic:How to set focus in org.eclipse.wst.xml.xpath2.processor.jar
Goto Forum:
  


Current Time: Thu May 23 00:35:33 EDT 2013

Powered by FUDForum. Page generated in 0.01606 seconds