diff --git a/tools/website/drupal/mse-drupal-modules/highlight.inc b/tools/website/drupal/mse-drupal-modules/highlight.inc index d4b73d33..c34c41c4 100644 --- a/tools/website/drupal/mse-drupal-modules/highlight.inc +++ b/tools/website/drupal/mse-drupal-modules/highlight.inc @@ -11,6 +11,7 @@ $built_in_functions = array( 'to_number' =>'', 'to_boolean' =>'', 'to_color' =>'', + 'to_image' =>'', 'to_date' =>'', // numbers 'abs' =>'', @@ -76,8 +77,14 @@ $built_in_functions = array( 'set_mask' =>'', 'set_alpha' =>'', 'set_combine' =>'', + 'saturate' =>'', + 'invert_image' =>'', + 'recolor_image' =>'', 'enlarge' =>'', 'crop' =>'', + 'flip_horizontal' =>'', + 'flip_vertical' =>'', + 'rotate' =>'', 'drop_shadow' =>'', 'symbol_variation' =>'', 'built_in_image' =>'', @@ -157,6 +164,12 @@ function highlight_script($code) { while(strlen($code)) { if (preg_match("@^<[^>]+>@",$code, $matches)) { $ret .= $matches[0]; // plain tag + } else if (preg_match("@^(rgb)[(]([0-9]+),([0-9]+),([0-9]+)[)]@",$code, $matches)) { + $ret .= "" + . "rgb(" + . "" . $matches[2] . "," + . "" . $matches[3] . "," + . "" . $matches[4] . ")"; } else if (preg_match("@^(if|then|else|for( each)?|in(?= )|do|div|mod|and|or|xor|not|rgb|rgba|from|to|min|max)\b(?!:)@",$code, $matches)) { $ret .= "" . $matches[0] . ""; } else if (preg_match("@^(include file:)(.*)@",$code, $matches)) {