Filter: Full HTML

Below is my Code in the source:

<pre class="brush: php">
$patients = $this-&gt;Patient-&gt;find(&#39;all&#39;)
</pre>

The output line is shown in four parts, the generated HTML is:

 

 
<div id="highlighter_443892" class="syntaxhighlighter  php">
<div class="toolbar">
<span><a href="#" class="toolbar_item command_help help">?</a></span>
</div>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
<td class="gutter"><div class="line number1 index0 alt2">1</div></td>
<td class="code"><div class="container"><div class="line number1 index0 alt2">
<code class="php variable">$patients</code> 
<code class="php plain">= </code>
<code class="php variable">$this</code>
<code class="php plain">-&gt;Patient-&gt;find(</code>
<code class="php string">'all'</code>
<code class="php plain">)</code></div></div></td></tr></tbody></table></div>
 
CommentFileSizeAuthor
#1 sh-ok.jpg7.8 KBmattyoung
syntaxhighlighter.png4.13 KBmaxbohr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maxbohr’s picture

Issue summary: View changes

reformatting the code section to display correctly.

mattyoung’s picture

FileSize
7.8 KB

I just copy and paste your markup and worked fine for me here...

No problem

I can't think of any reason why it's like that for you. Can you do a view source on the page and see what the browser is getting from the server instead of the final dom?

dman’s picture

You have some css in your theme that is making code tags display:block, when normally it should be inline.

mattyoung’s picture

Status: Active » Closed (works as designed)
mattyoung’s picture

Issue summary: View changes

Another attempt to format the code.