src/modules/inactive/commands/aryeh_implementation.js
function(value) {
		// Action is further copy-pasted, same as foreColor

		// "If value is not a valid CSS color, prepend "#" to it."
		//
		// "If value is still not a valid CSS color, or if it is currentColor,
		// abort these steps and do nothing."
		//
		// Cheap hack for testing, no attempt to be comprehensive.
		if (/^([0-9a-fA-F]{3}){1,2}$/.test(value)) {
			value = "#" + value;
		}
		if (!/^(rgba?|hsla?)\(.*\)$/.test(value)
		&& !parseSimpleColor(value)
		&& value.toLowerCase() != "transparent") {
			return;
		}

		// "Set the selection's value to value."
		setSelectionValue("hilitecolor", value);
	}
function(value) {
		// Action is further copy-pasted, same as foreColor

		// "If value is not a valid CSS color, prepend "#" to it."
		//
		// "If value is still not a valid CSS color, or if it is currentColor,
		// abort these steps and do nothing."
		//
		// Cheap hack for testing, no attempt to be comprehensive.
		if (/^([0-9a-fA-F]{3}){1,2}$/.test(value)) {
			value = "#" + value;
		}
		if (!/^(rgba?|hsla?)\(.*\)$/.test(value)
		&& !parseSimpleColor(value)
		&& value.toLowerCase() != "transparent") {
			return;
		}

		// "Set the selection's value to value."
		setSelectionValue("hilitecolor", value);
	}
function ( value ) { // Action is further copy-pasted, same as foreColor // "If value is not a valid CSS color, prepend "#" to it." // // "If value is still not a valid CSS color, or if it is currentColor, // abort these steps and do nothing." // // Cheap hack for testing, no attempt to be comprehensive. if ( / ^([0-9a-fA-F]{3}){1,2}$ / . test ( value ) ) { value = "#" + value ; } if ( ! / ^(rgba?|hsla?)\(.*\)$ / . test ( value ) && ! parseSimpleColor ( value ) && value . toLowerCase ( ) != "transparent" ) { return ; } // "Set the selection's value to value." setSelectionValue ( "hilitecolor" , value ) ; }
Copy-pasted, same as backColor
Copy - pasted same as backColor