Content Completion in CSS Stylesheets

A content completion assistant like the one available for XML documents offers the CSS properties and the values available for each property. It is activated on the (CTRL - Space) shortcut and it is context-sensitive when invoked for the value of a property.

Content Completion in CSS Stylesheets

The properties and the values offered as proposals are dependent on the CSS Profile selected in the Options > Preferences > CSS Validator page, Profile combo box. The CSS 2.1 set of properties and property values is used for most of the profiles, excepting CSS 1 and CSS 3. For these two, specific proposal sets are used.

The profile CSS 3 with Oxygen extensions includes all the CSS 3 standard properties and the CSS extensions specific for Oxygen that can be used in Author mode.

You can add custom CSS properties with a file called customProperties.xml located in the folder [Oxygen-install-folder]/endorsed/builtin/css-validator. The custom properties and their values are accepted by the CSS validator and are listed in the content completion window when editing a CSS stylesheet. For example the custom property called custom with the possible values customValue1 and customValue2 is specified with the following configuration file customProperties.xml:
<?xml version="1.0" encoding="UTF-8"?>
<css_keywords>
    <property name="custom">
        <summary>Description for custom property.</summary>
        <value name="customValue1"/>
        <value name="customValue2"/>
    </property>
</css_keywords>