- This topic has 12 replies, 7 voices, and was last updated 20 years, 8 months ago by Scott Anderson.
-
AuthorPosts
-
pmonksMemberG’day again,
I’ve just noticed that some of the HTML/JS in my JSPs are not visible in the JSP editor, and it looks like the problem is caused by some of the colour preferences for the JSP editor being ignored.
To replicate this:
1. open up the preferences for the “JSP/HTML Editor”
2. set the background colour to black
3. for each and every item in the “Syntax colors” list, set the colour to white (leaving the background colour unchanged)
At this point if you check the “Preview” window, you’ll notice that the text within the <h1></h1> tags (“Example”) is not visible. It appears that this is due to the text colour being hardcoded to black, making it the same as the background colour.I believe (but am not 100% sure) that this is due to the “HTML” setting in the “Syntax colors” list being ignored. I’m also reasonably certain this behaviour didn’t exist in 2.6.4 (but I could be wrong there too).
Cheers,
PeterEnvironmental information:
OS: Windows 2000 Server, SP4
Eclipse version: 2.1.2 Build id: 200311030802
Was Eclipse freshly installed for MyEclipse? Yes
Are any other external plugins installed? Yes
How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*? 7
What MyEclipse version are you using? 2.6.100 Build id: 200312091200-2.7-RC1
What JDK version are you using to run Eclipse? 1.4.2_03
What JDK version are you using to launch your application server? BEA JRockit 1.4.1_03
What application server are you using? BEA Weblogic 8.1 SP1
No OperationMemberWhat seems to be reproducable:
Preferences->MyEclipse->Editors->JSP/HTML Editor->Colors->Syntax Color->HTML: settings have no effect.
NOP
rocket_rocketMemberI have the same problem. It on JSP and HTMl files. When the background is set to Black – some text disappears. I’ve tried changing the font colour also – this did not make any differences. Its seems some text in JSP and HTML are always black – regardless of the settings. So the black background makes them disappear. I am using 020700RC1.
rocket_rocketMemberThis did not exist in 2.6.4. By going back to that version – I don’t have this problem.
Riyad KallaMemberYou know I was running into some coloring issues as well. Maybe when the ME team gets back we can have them do some quick sanity checks on the color support for us.
I think the 1st and second post are good “test cases” for the guys to check out, can anybody else contribute a test case that breaks so they have something solid to run with when they return? (my particular problem was taglib highlighting, but I think these are all probably tied in together… my solution was to close and reopen the file)
rocket_rocketMemberI just downloaded the latest update (Releases 2.7 RC2 (01/05/04) )
This fixed some of the problems mentioned above.
But here is a new one.Set the backgorund for a jsp to be custom:black.
In the jsp type in an element:
<script>Any text you type after this is black over black (and hence it is not shown), until the end tag ‘<‘ is entered.
Riyad KallaMemberWouldn’t this just be a matter of poor foreground/background color selection? If you chose a different foreground color for “HTML” would this solve the problem?
rocket_rocketMemberI’ve investgated this further. And it seems like a bug.
(NOTE: foreground is set to non-black for all HTML, JSP, JAVA etc)
Create any JSP page where the background is set to custom:black.
Now type in any text.
Note that the first character appears fine but any subsequent characters are black on black – until an ‘enter’ is hit or a ‘<‘ character is entered.
Riyad KallaMemberOk that’s just what I wanted to know. I’ll mark it as such, thanks for doing the research!
Alfie KirkpatrickMemberI have similar problems but slightly different on 3.7RC2.
I’ve removed bold from the HTML tags/attributes. When I open a JSP all the JSP tags are also non-bold… until I make a change to the file. Then they magically appear bold like they should.
Also, another gripe but errors in JSPs are not shown in the Problems list. Eg. invalid tags or plain old coding errors in scriptlets. Would have thought that with compilation of JSPs on, this would be possible.
No OperationMemberThere are two different issues now:
I’ve removed bold from the HTML tags/attributes. When I open a JSP all the JSP tags are also non-bold… until I make a change to the file. Then they magically appear bold like they should.
this seems to be an Eclipse 3.0 issue – invalidation of the source viewer seems broken.
Also, another gripe but errors in JSPs are not shown in the Problems list.
JSP validation only verifies JSP content, it has no clue about the content (HTML/XML/RTF/whatever).
Whether the editor hints (which are HTML based) should be added to the error list is another issue.NOP
Riyad KallaMemberalfie/nop,
Can you guys let me know what the status of this is now with 2.7 GA?
Scott AndersonParticipantResolved in 2.7 GA.
-
AuthorPosts