I've got Geshi installed, and apparently working. I can set up code tags, and it will mark up sections of code. However, the code comes out without any style based markup:

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><div class="geshifilter"><table class="c geshifilter-c"><tbody><tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
</pre></td><td class="de1"><pre class="de1">for( int i = 0; i &lt; 10; i++ )
{
&nbsp; System.out.println(&quot;Value is: &quot; + i );
}</pre></td></tr></tbody></table></div></div></div></div>

(yes, that's not valid C - it was set to Java orignally. So it's putting the correct wrapping around the code, but not actually marking it up.

The behaviour is the same whether it's set to do it inline, or with a stylesheet. I've turned off all the other input filters for this format.

I'm using GeSHi-1.0.8.11.tar.gz. If this is known to be a bad idea, I can try to get 1.03 etc. working, but according to the docs anything less than 1.1 is OK.

(I think this is different to the "Geshi not highlighting" bug, as that was about getting the module working at all, or fights with other input filters.)

Comments

soxofaan’s picture

Category: bug » support

Can you show a screenshot of the resulting page? Because your example is a bit confusing.

mo-seph’s picture

I don't know how to put one inline, but there's one here: http://www.mo-seph.com/pubfiles/geshi-example.png

Maybe the example is confusing as it's output using the "inside a table" option for easy copy/paste?

It's taken from this page: http://www.mo-seph.com/node/610

The code behind it is:

<java>
x = 7;
for( int i = 0; i < 10; i ++ )
{
    if( i == 7 or j == 8)
    x = x + i - Math.random()
}
</java>

I've tried turning off all other input filters, and that doesn't help. I've tried using the different highlighting methods as well.

If there's any more info I can give to help, please let me know!

soxofaan’s picture

Did you flushed all caches after turning off other input filters and playing with different highlighting methods?
Alternative: change the node body a bit (e.g. a bit of whitespace twiddling) and resave.

mo-seph’s picture

I've done a lot of cache flushing and whitespace twiddling, without any result :(

Anything else I can try to help debug?

soxofaan’s picture

Have you already tried/experimented with all the GeSHi render options (inline CSS, external CSS file, autogenerated CSS file, ....)

That being said, from the example you gave, it seems that there is still some filter active in some way, stripping out markup from the GeSHi filter. Can you give some more infor (e.g. screenshot) of the input filters/text format in play here?

yukare’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Closing this as it is more than a year without any response, please reopen it if you still have this issue.