Function __global->wysiwyg_comcode_markup_style

Definitions

sources/comcode_compiler.php

  • Find how Comcode will be represented in the editor.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$tag string No No required parameter N/A N/A The Comcode tag
$attributes ?array No No Null N/A N/A The parameters (null: don't consider)
$embed ?Tempcode No No Null N/A N/A The contents of the tag (null: don't consider)
$html_errors boolean No No False N/A N/A Whether HTML structure errors have been spotted so far (limits how $semiparse_mode rendering works)
$conservative boolean No No False N/A N/A Don't add things to WYSIWYG_COMCODE__HTML that may not be in some situations

Returns

  • The Comcode integration style
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find how Comcode will be represented in the editor.
 *
 * @param  string $tag The Comcode tag
 * @param  ?array $attributes The parameters (null: don't consider)
 * @param  ?Tempcode $embed The contents of the tag (null: don't consider)
 * @param  boolean $html_errors Whether HTML structure errors have been spotted so far (limits how $semiparse_mode rendering works)
 * @param  boolean $conservative Don't add things to WYSIWYG_COMCODE__HTML that may not be in some situations
 * @return integer The Comcode integration style
 */

function wysiwyg_comcode_markup_style(string $tag, ?array $attributes = null, ?object $embed = null, bool $html_errors = false, bool $conservative = false) : int