![aptana css color codes aptana css color codes](https://i.stack.imgur.com/5L7Wu.jpg)
The overall theme color keys of foreground, background, selection, caret, and line highlight are expected to be present as keys, as is the "name" key for the theme name. Place the theme addition in a file that will get loaded when the ruble does (for example, bundle.rb). Use a hash from the token name to a string containing the fg, bg (optional), and font styles (optional).
#Aptana css color codes code#
For specific element:RGB format: rgb(255,165,0) Name format: orange. RGB format: rgb(red, green, blue) Name format: name. The color code can be one of: Hex format: rrggbb. See Current Theme Scopes for a complete list of currently available scopes. White colors Gray colors Brown colors CSS color. Generally speaking, tokens follow a convention of -extension, for example, "". There is a longer discussion about creating scopes here: (opens new window) # Token namesĪ good starting point for token naming conventions is the TextMate documentation on the subject: (opens new window) Some examples: Desired EffectĪdd scope '' and choose colors.Īdd scope 'source.css' and choose colors.Ĭolorize the background of CSS source, but only when embedded in any language.Īdd scope '' and choose colors.Ĭolorize the background of CSS source, but only when embedded inside an HTML document (for example, a style tag).Īdd scope 'text.html source.css' and choose colors. You can add scopes if you like to specifically modify things to your taste. Many of the scopes defined in themes are relatively general across languages. When applying colors, it will choose the scope closest in match to the one above by following a prefix match, for example, "" matches "ction" for which a color is defined. If you open up Preferences > Aptana > Themes, you will see a list of scopes.
![aptana css color codes aptana css color codes](http://wordpattern.org/wp-content/uploads/Four-Striking-Features-of-HTML-51-720x405.jpg)
You will see each of the pieces of text above has "source.css" and the specific scope in question applied. You can double-check this yourself by placing the cursor at a particular location, and choosing "Commands > Bundle Development > Show Scope". Theme Scope Selector Rule that matches ("Aptana Studio" Theme) Individual tokens will have the following scopes applied: Token The entire snippet in a CSS file will have the scope 'source.css'.