Lines Matching refs:codes
37 private $codes = array(); variable in syntax_plugin_webcode_basis
261 $codes = array();
291 if (!array_key_exists($lowerCodeName, $codes)) {
292 $codes[$lowerCodeName] = $code;
294 $codes[$lowerCodeName] = $codes[$lowerCodeName] . $code;
319 return array($state, $matchedTextToRender, $codes, $useConsole);
372 $this->codes = array();
381 $this->codes[$codeType] = $this->codes[$codeType] . $code[$codeType];
405 if (sizeof($this->codes) == 0) {
409 if (array_key_exists('dw', $this->codes)) {
410 $instructions = p_get_instructions($this->codes['dw']);
428 if (array_key_exists('babel', $this->codes)) {
456 if (array_key_exists('css', $this->codes)) {
458 $htmlContent .= '<style>' . $this->codes['css'] . '</style>';
461 if (array_key_exists('html', $this->codes)) {
463 $htmlContent .= $this->codes['html'];
475 if (array_key_exists('javascript', $this->codes)) {
477 … $htmlContent .= '<script type="text/javascript">' . $this->codes['javascript'] . '</script>';
479 if (array_key_exists('babel', $this->codes)) {
481 … $htmlContent .= '<script type="text/babel">' . $this->codes['babel'] . '</script>';
511 …$bar .= '<div class="webcode-bar-item">'.$this->addJsFiddleButton($this->codes, $this->attributes)…
525 * @param array $codes the array containing the codes
531 public function addJsFiddleButton($codes, $attributes) argument
560 $codes['html'] .= "\n\n\n\n\n<!-- The resources -->\n";
561 …$codes['html'] .= "<!-- They have been added here because their order is not guarantee through the…
562 … $codes['html'] .= "<!-- See: https://github.com/jsfiddle/jsfiddle-issues/issues/726 -->\n";
568 … $codes['html'] .= "<link href=\"" . $externalResource . "\" rel=\"stylesheet\">\n";
571 … $codes['html'] .= "<script src=\"" . $externalResource . "\"></script>\n";
574 $codes['html'] .= "<!-- " . $externalResource . " -->\n";
580 $jsCode = $codes['javascript'];
582 if (array_key_exists('babel', $this->codes)) {
583 $jsCode = $codes['babel'];
599 '<input type="hidden" name="css" value="' . htmlentities($codes['css']) . '">' .
600 …'<input type="hidden" name="html" value="' . htmlentities("<!-- The HTML -->" . $codes['html']) . …
615 public function addCodePenButton($codes, $attributes) argument