bgcolor, color, background - Select Color and File dialog

Discuss syntax highlighting or submit new syntax files.
Post Reply
AlexBreems
Posts: 136
Joined: 08 Sep 2010 12:49

bgcolor, color, background - Select Color and File dialog

Post by AlexBreems »

Hi,

In HTML need auto pop up when type:

bgcolor="" -> select color
color="" -> select color
background="" -> file dialog

Regards,
Alex
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Those properties are not valid in HTML5, so I didn't add them. I'll fix that.

BTW. The property

background="" -> file dialog

should be

background="" -> url dialog

right?
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Actually, we can add both url and file dialogs to the background property, so never mind.
AlexBreems
Posts: 136
Joined: 08 Sep 2010 12:49

Post by AlexBreems »

Yes, of course, URL dialog :)
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Post by pjj »

Actually, background is a shorthand (like eg. border or font) and can contain definitions for background-color, background-image, background-repeat, background-attachment and background-position, so this dialog may turn out quite sophisticated in the process...
AlexBreems
Posts: 136
Joined: 08 Sep 2010 12:49

Post by AlexBreems »

pjj wrote:Actually, background is a shorthand (like eg. border or font) and can contain definitions for background-color, background-image, background-repeat, background-attachment and background-position, so this dialog may turn out quite sophisticated in the process...
you're talking about CSS but I'm talking about HTML tags attributes 8)

http://www.w3schools.com/tags/tag_body.asp (see Optional Attributes)

Example
http://www.w3schools.com/tags/att_body_bgcolor.asp
http://www.w3schools.com/tags/att_body_background.asp
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Probably my fault. I wrote properties instead of attributes.

We were indeed talking about tag attributes, but the idea for a CSS property dialog is not a bad one. Some properties can have several values and in some cases a dialog may help. I'll consider it.
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Post by pjj »

The bgcolor attribute of <body> is deprecated, and is not supported in HTML 4.01 Strict / XHTML 1.0 Strict DTD.

Use CSS instead.
http://www.w3schools.com/tags/att_body_bgcolor.asp
The background attribute of <body> is deprecated, and is not supported in HTML 4.01 Strict / XHTML 1.0 Strict DTD.

Use CSS instead.
http://www.w3schools.com/tags/att_body_background.asp
Now, the question is if RJ TE should support deprecated elements/attributes/properties/whatever? Eg. HTML > Advanced > Frames? I believe it shouldn't. To the contrary, it should encourage use of recommended standards.
AlexBreems
Posts: 136
Joined: 08 Sep 2010 12:49

Post by AlexBreems »

I agree that some elements are obsolete
let's really do support only recommended
aaagul45
Posts: 1
Joined: 18 Dec 2014 12:46

Re: bgcolor, color, background - Select Color and File dialo

Post by aaagul45 »

We can add both url and file dialogs to the background property, so never mind.??
Post Reply