Yesterday, I toasted my database, trying to display PHP code in an entry (at least, that's what I THINK happened). Had to restore from backup (host's backup, as I haven't implemented a backup plan YET!! Got caught! :oops: Weren't we just talking about backups? )
In any case, after searching for the correct way to 'display' code in a blog entry, I saw this post:
http://forums.b2evolution.net/viewtopic.php?t=2729
It pertains to the question, but confuses the issue between 'displaying' and 'embedding' code.
Whoo gave two good resources for DISPLAYING code and I'm gonna put them up again, because both are worth-while (thanks Whoo!):
1) Nice tool to convert ACTUAL code to DISPLAY code: http://www.simplebits.com/cgi-bin/simplecode.pl
2) Nice way to format the DISPLAY code in an entry (so long code doesn't consume tons of real estate):
http://www.village-idiot.org/archives/2004/11/07/smell-of-sweet-success/
Both help answer the question.
BUT ... I notice on this bulletin board, one can simply add ACTUAL code, after hitting the "[code]" button.
Is there a way that I can have the same functionality for the "Code" quick edit toolbar button in the b2evo Back Office? (Rather than always having to run it thru the simple-bits converter)
Thanks.
there is no hack (yet) for a simple tag like [code] .. it is done for wordpress, and thats *one* of the things you see on my site.
One thing I have on my list of things for b2evo hack thingys to do is seen here:
http://www.village-idiot.org/archives/2005/01/03/sysinfo-for-x-chat/
it calls the external file, embeds it properly complete with line numbers AND CSS, AND allows for direct downloads.
Its also a much easier thing for me to tackle then the larger hack that differnetiates between perl, php, simple shell script, etc.. that I mention above and you also see on my site in some places.
I'm hoping i can get around to that one thing this weekend.