Basic text formatting not working in Intro Page [message #290911] |
Fri, 02 September 2005 19:21 |
Eclipse User |
|
|
|
Originally posted by: mark_melvin.amis.com
I have re-tooled the Eclipse Intro pages to display my stuff as part of
my product. It all seems to work great, now that I have figured it out.
I checked it in, and tried it on another machine and all of my <text>
was gone! Some digging has revealed that it works fine under Java
1.5.0_04, but not on 1.4.2_07. From the docs, it says:
text
<!ELEMENT text EMPTY>
<!ATTLIST text
id CDATA #IMPLIED
style-id CDATA #IMPLIED
filteredFrom (swt|html) >
a snippet of text that can optionally contain escaped HTML tags. It can
include b and li tags. It can also contain anchors for urls. If multiple
paragraphs are needed, then the text can be divided into multiple
sections each beginning and ending with the p tag.
Well, I have added some text to my page (which renders fine on my Java
1.5 environment) like this:
<text style-id="page-description" id="page-description">
<p>You can put your preliminary discussion stuff here, etc.</p>
<p>You can even do some basic formatting with using
<b>escapedhtml.</b></p&am p;gt;
</text>
But it doesn't work on Java 1.4.2. It just displays nothing. If I
remove the ampersand-ed html markup, it displays the normal text fine on
both machines. Is this a known limitation, or am I doing something
wrong here?
Thanks,
Mark.
|
|
|
Re: Basic text formatting not working in Intro Page [message #290986 is a reply to message #290911] |
Mon, 05 September 2005 15:05 |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
You shouldn't be using the ampersanded text, unless what you really want is it to come across looking like &amp;lt; in your view. The correct way of specifying HTML is not to encode the less-than and greater-than symbols.
|
|
|
Re: Basic text formatting not working in Intro Page [message #291047 is a reply to message #290986] |
Tue, 06 September 2005 17:58 |
Eclipse User |
|
|
|
Originally posted by: mark_melvin.amis.com
Well, I tried using straight HTML like:
<text style-id="page-description" id="page-description">
<p>This is a paragraph.</p>
<p>So is this.</p>
</text>
And it shows up blank as well (i.e. I see nothing in my view). However,
replacing the '<'s and '>'s with the ampersanded versions seemed to work
(well, it worked on Java 1.5, but was still blank on 1.4.2_07). How
should I be doing it then?
Mark.
Alex Blewitt wrote:
> You shouldn't be using the ampersanded text, unless what you really want is it to come across looking like &amp;lt; in your view. The correct way of specifying HTML is not to encode the less-than and greater-than symbols.
|
|
|
Powered by
FUDForum. Page generated in 0.02963 seconds