2 yabba Jun 25, 2009 20:42

Urm, our plugin has never had a language dropdown?
Here's the link that b2evolution.net plugin site sent me to for the Code Highlight plugin: http://blogs.crammerz-inc.net/thunk/2007/05/26/b2evolution_code_highlighter_plugin
ahhh .... now it all makes sense!
You may wish to contact the plugin author and notify them that the code highlighter plugin is now part of the core and has a had a smidge of a recode/change so they may like to update their plugin to reflect those changes
¥
Ok...I decided to back out the Code Highlight Plugin downloaded earlier and put the core version back in. I performed a reload plugins then clicked on the local documentation button for the plugin to verify that the core version was loaded. I also performed a delete pre-rendered item cache.
I then tried to post of PHP code by selecting the code then clicking the PHP button from the Expert tab. The code generated is surrounded by square brackets with the codeblock lang="php" line="1" and saves successfully. Unfortunately, this code is not rendered at preview or view time either. It is displayed but is in the exact format as how I entered it, with square brackets and all.
Thanks for your prompt responses!!
Can you point me to that post?
¥
Sure. Here it is: http://blog.stackley.net/?blog=1
Thanks!
damn, wish I'd not asked now, looks like the plugin is a smidge screwed in cvs :P
... anyway, tad irrelevant, it's a different problem ;)
what happens if you try and post the following ( link to post would be nice )
[codeblock lang="php" line="1"]<?php
echo "hello world";
echo 'are single quotes better?';
?>[/codeblock]
It looks like this on my (cvs) test blog : [url=http://cvs.innervisions.org.uk/index.php?blog=1&p=34&more=1&c=1&tb=1&pb=1]test results[/url]
*note to self*
enable clean urls :P
¥
I have posted the code you provided. If you would like to post, just register as a user and I'll grant you access.
Thanks!!
ok, that result doesn't make sense :-S
tad to brain dead to debug tonight, if you want to create me a user and pm the details then I'll try and get chance to look in the morning ;)
¥
Ok, this is a simple fix .. when you make a post just tick the code highlighter in the renderers list ( bottom right of the write screen ) ;)
¥
Well...duh. That was a simple fix! I will now go back and try out the version that supports more languages - Knowing that the < and > will need to be replaced with square brackets.
Thanks so much for your help!!
Makes yah wonder "should I be ecstatic that it was 'that' easy ... or should I just slam my head against the wall with a "duh" "duh" "duh" "*breaks wall*"
Personally I was ecstatic ... once my brain woke up ;)
¥
Urm, our plugin has never had a language dropdown?
¥