Lines Matching defs:code
26 # Define the width of a tab for code blocks.
580 # been seen as a code block in a previous pass of hashHTMLBlocks.
626 # Process character escapes, code spans, and inline HTML
1090 # Process Markdown `<pre><code>` blocks.
1094 ( # $1 = the code block -- one or more lines, starting with a space/tab
1115 $codeblock = "<pre><code>$codeblock\n</code></pre>";
1120 function makeCodeSpan($code) {
1122 # Create a code span markup for $code. Called from handleSpanToken.
1124 $code = htmlspecialchars(trim($code), ENT_NOQUOTES);
1125 return $this->hashPart("<code>$code</code>");
1376 // # that initialization code should be pulled into its own sub, though.
1504 # escaped characters and handling code spans.
1513 `+ # code span marker
1533 # openning code span marker, or the next escaped character.
1793 # * $indent is the number of space to be ignored when checking for code
1799 # Hello World. <-- Is this a Markdown code block or text?
1800 # </div> <-- Is this a Markdown code block or a real tag?
1853 # Code span marker
1857 # Indented code block
1864 # Fenced code block marker
1910 # Check for: Code span marker
1928 # Check for: Indented code block or fenced code block marker.
1932 # Indented code block: pass it unchanged, will be handled
1937 # Fenced code block marker: find matching end marker.
2350 # Parsing span elements, including code spans, character escapes,
2370 # Parsing span elements, including code spans, character escapes,
2518 # Adding the fenced code block syntax to regular Markdown:
2521 # Code block
2554 $codeblock = "<pre><code>$codeblock</code></pre>";
2839 as headers, *emphasis*, code blocks, blockquotes, and links.
2885 * Redistributions of source code must retain the above copyright notice,