Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » CSS content assist in HTML editor
CSS content assist in HTML editor [message #1387512] Wed, 25 June 2014 07:34 Go to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Is content assist for CSS available as HTML editor?

Consider the following example:

<!DOCTYPE html>
<html>
<head>
<style>
.orange-header {
    color: orange;
    text-align: center;
}
</style>
</head>
<body>

<h1 class="|">My First CSS Example</h1>

</body>
</html>


At
<h1 class="|
I would expect that the "orange-header" CSS class will be proposed when I hit Ctrl+Space, but this does not happen.

In Window > Preferences > Web > HTML Files > Editor > Content Assist I can see that CSS proposals are enabled.
Re: CSS content assist in HTML editor [message #1397356 is a reply to message #1387512] Wed, 09 July 2014 15:53 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On 06/25/2014 03:34 AM, Kaloyan Raev wrote:
> Is content assist for CSS available as HTML editor?
>
> Consider the following example:
> <!DOCTYPE html>
> <html>
> <head>
> <style>
> orange-header {
> color: orange;
> text-align: center;
> }
> </style>
> </head>
> <body>
>
> <h1 class="|">My First CSS Example</h1>
>
> </body>
> </html>
>
> At <h1 class="| I would expect that the "orange-header" CSS class will
> be proposed when I hit Ctrl+Space, but this does not happen.
>
> In Window > Preferences > Web > HTML Files > Editor > Content Assist I
> can see that CSS proposals are enabled.

This used to work ... but not for "in same file" CSS style.
It would only work if the CSS was supplied in a "stylesheet".
I say "used to" since I tried for 60 seconds to get a style sheet to
work (that is, to offer content assist) and it did not, for some reason.
Hopefully I was making a silly mistake and at least that still works.
FWIW, there is/was a very old bug on supporting CSS "in header" (but so
old I won't bother looking it up).
Re: CSS content assist in HTML editor [message #1397364 is a reply to message #1397356] Wed, 09 July 2014 16:05 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi David,

The real issue I have is with CSS supplied in a "stylesheet". I used the "in same file" CSS example as an easier way to reproduce.

Do you remember in which version of WTP this used to work?

Thanks,
Kaloyan
Re: CSS content assist in HTML editor [message #1397400 is a reply to message #1397364] Wed, 09 July 2014 17:13 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On 07/09/2014 12:05 PM, Kaloyan Raev wrote:
> Hi David,
>
> The real issue I have is with CSS supplied in a "stylesheet". I used
> the "in same file" CSS example as an easier way to reproduce.
> Do you remember in which version of WTP this used to work?
>
> Thanks,
> Kaloyan
No, not specifically. It seemed like it did "2 or 3 releases ago" ....
but ... that's along time, so I don't really have any idea.

Le me know if/how you get it working!
Previous Topic:Obtain an action or datamodel after creating facet project
Next Topic:JSDT: impossible to use in an middle Java/JavaScript project
Goto Forum:
  


Current Time: Sat Apr 20 05:48:16 GMT 2024

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

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

Back to the top