public final static String EDITOR_PHP_FUNCTIONNAME_BOLD = IPreferenceConstants.PHP_FUNCTIONNAME + EDITOR_BOLD_SUFFIX;
/**
+ * A named preference that holds the color used to render php variables with prefix '$_'.
+ * <p>
+ * Value is of type <code>String</code>. A RGB color value encoded as a string using class <code>PreferenceConverter</code>
+ * </p>
+ *
+ * @see org.eclipse.jface.resource.StringConverter
+ * @see org.eclipse.jface.preference.PreferenceConverter
+ */
+ public final static String EDITOR_PHP_VARIABLE_DOLLAR_COLOR = IPreferenceConstants.PHP_VARIABLE_DOLLAR;
+
+ /**
+ * A named preference that controls whether variables with prefix '$_' are rendered in bold.
+ * <p>
+ * Value is of type <code>Boolean</code>.
+ * </p>
+ */
+ public final static String EDITOR_PHP_VARIABLE_DOLLAR_BOLD = IPreferenceConstants.PHP_VARIABLE_DOLLAR + EDITOR_BOLD_SUFFIX;
+
+ /**
* A named preference that holds the color used to render php variables.
* <p>
* Value is of type <code>String</code>. A RGB color value encoded as a string using class <code>PreferenceConverter</code>
* </p>
*/
public final static String EDITOR_PHP_VARIABLE_BOLD = IPreferenceConstants.PHP_VARIABLE + EDITOR_BOLD_SUFFIX;
-
/**
* A named preference that holds the color used to render php constants.
* <p>
*/
public static final String EDITOR_SMART_TAB = "smart_tab"; //$NON-NLS-1$
+ public static final String EDITOR_P_RTRIM_ON_SAVE = "editor_p_trim_on_save"; //$NON-NLS-1$
+
/**
* A named preference that controls whether Java comments should be spell-checked.
* <p>
PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_COLOR, new RGB(127, 159, 191));
store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_BOLD, false);
+ PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_COLOR, new RGB(127, 159, 191));
+ store.setDefault(PreferenceConstants.EDITOR_PHP_VARIABLE_DOLLAR_BOLD, false);
+
PreferenceConverter.setDefault(store, PreferenceConstants.EDITOR_PHP_CONSTANT_COLOR, new RGB(127, 0, 85));
store.setDefault(PreferenceConstants.EDITOR_PHP_CONSTANT_BOLD, false);
store.setDefault(PreferenceConstants.EDITOR_FOLDING_IMPORTS, false);
store.setDefault(PreferenceConstants.EDITOR_SMART_BACKSPACE, true);
-
+ store.setDefault(PreferenceConstants.EDITOR_P_RTRIM_ON_SAVE, false);
// do more complicated stuff
// NewJavaProjectPreferencePage.initDefaults(store);
}