Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Basic text formatting not working in Intro Page
Basic text formatting not working in Intro Page [message #290911] Fri, 02 September 2005 19:21 Go to next message
Eclipse UserFriend
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">
&lt;p&gt;You can put your preliminary discussion stuff here, etc.&lt;/p&gt;
&lt;p&gt;You can even do some basic formatting with using
&lt;b&gt;escapedhtml.&lt;/b&gt;&lt;/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 Go to previous messageGo to next message
Eclipse UserFriend
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;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 Go to previous message
Eclipse UserFriend
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;amp;lt; in your view. The correct way of specifying HTML is not to encode the less-than and greater-than symbols.
Previous Topic:Getting jface ApplicationWindow menu and status bar height
Next Topic:Eclipse on Solaris and Windows 64-bit
Goto Forum:
  


Current Time: Wed Apr 24 22:03:58 GMT 2024

Powered by FUDForum. Page generated in 0.02963 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top