private function format_glue($glue, $highlight = TRUE) { // TODO $highlight return CrayonFormatter::format_code($glue, $this->language, $this, $highlight); }
public static function delim_to_internal($matches) { // Mark as mixed so we can show (+) self::$curr->is_mixed(TRUE); $capture_group = count($matches) - 2; $capture_groups = array_keys(self::$delimiters); $lang_id = $capture_groups[$capture_group]; if (($lang = CrayonResources::langs()->get($lang_id)) === NULL) { return $matches[0]; } $internal = sprintf('{{crayon-internal:%d}}', count(self::$delim_pieces)); // TODO fix self::$delim_pieces[] = CrayonFormatter::format_code($matches[0], $lang, self::$curr); return $internal; }