Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Filter: Full HTML
Below is my Code in the source:
<pre class="brush: php">
$patients = $this->Patient->find('all')
</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">->Patient->find(</code>
<code class="php string">'all'</code>
<code class="php plain">)</code></div></div></td></tr></tbody></table></div>
Comment | File | Size | Author |
---|---|---|---|
#1 | sh-ok.jpg | 7.8 KB | mattyoung |
syntaxhighlighter.png | 4.13 KB | maxbohr |
Comments
Comment #0.0
maxbohr CreditAttribution: maxbohr commentedreformatting the code section to display correctly.
Comment #1
mattyoung CreditAttribution: mattyoung commentedI just copy and paste your markup and worked fine for me here...
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?
Comment #2
dman CreditAttribution: dman commentedYou have some css in your theme that is making
code
tagsdisplay:block
, when normally it should be inline.Comment #3
mattyoung CreditAttribution: mattyoung commentedComment #3.0
mattyoung CreditAttribution: mattyoung commentedAnother attempt to format the code.