public function setAceCodeHighlighting($value, $dc)
	{
		$pattern = $GLOBALS['TL_DCA']['tl_content']['fields'][$dc->field]['pattern'];
		$highlight = $GLOBALS['TL_DCA']['tl_content']['fields'][$pattern . '-highlight']['data'];

		if (!empty($highlight))
		{
			$GLOBALS['TL_DCA']['tl_content']['fields'][$dc->field]['eval']['rte'] = 'ace|' . strtolower($highlight);
		}

		return $value;
	}
public function setAceCodeHighlighting($value, $dc)
	{
		$pattern = $GLOBALS['TL_DCA']['tl_content']['fields'][$dc->field]['pattern'];
		$highlight = $GLOBALS['TL_DCA']['tl_content']['fields'][$pattern . '-highlight']['data'];

		if (!empty($highlight))
		{
			$GLOBALS['TL_DCA']['tl_content']['fields'][$dc->field]['eval']['rte'] = 'ace|' . strtolower($highlight);
		}

		return $value;
	}
public function setAceCodeHighlighting ( $ value , $ dc ) { $ pattern = $ GLOBALS [ 'TL_DCA' ] [ 'tl_content' ] [ 'fields' ] [ $ dc -> field ] [ 'pattern' ] ; $ highlight = $ GLOBALS [ 'TL_DCA' ] [ 'tl_content' ] [ 'fields' ] [ $ pattern . '-highlight' ] [ 'data' ] ; if ( ! empty ( $ highlight ) ) { $ GLOBALS [ 'TL_DCA' ] [ 'tl_content' ] [ 'fields' ] [ $ dc -> field ] [ 'eval' ] [ 'rte' ] = 'ace|' . strtolower ( $ highlight ) ; } return $ value ; }
Dynamically set the ace highlight syntax

@param mixed         $value
@param DataContainer $dc

@return mixed
Dynamically set the ace highlight syntax