NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Adding CSS3 reserved words don't work for all


Joined: 18 Jul 2007
Posts: 30
Location: Pittsburgh, PA
Reply with quote
I tried to add things like -webkit-box-shadow and -moz-box-shadow to Tools -> Settings -> Reserved Words -> CCS 3.0

They added to the list, but are still shown in the editor as "Text" not as "CSS style attribute."

_________________
Ya
View user's profileFind all posts by loki_racerSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I think the reserved words are for syntax highlighting. Bearing in mind that PhpED also performs some validation on CSS statements just adding a keyword won't be enough.

Have a look at C:\Program Files (x86)\NuSphere\PhpED\config\phped.rel (drop the x86 if on 32-bit Windows) and first take note of the comment at the top of that file which explains to not modify that file but instead create your own and put it in the AppData folder, not the PhpED application folder.

Then go down to the CSS3 section of phped.rel and you will see the various statement declarations. You can copy that format for your own statements in your new file, probably using copies of the CSS3 statements and just renaming them.

Code:
[CSS.CSS30]
-webkit-box-shadow=none,etc
-moz-box-shadow=none,etc


webkit and moz are not CSS3, so fair enough not having them in the PhpED CSS3 declarations, but it would be nice if there was something like a CSS3 with extras that did cover some of the other browsers.
View user's profileFind all posts by plugnplaySend private message
Adding CSS3 reserved words don't work for all
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic