Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Blog: Code Colouring / Forum Searches


Reply


753 Views

Avatar
Hamish

Community Member, 712 Posts

6 July 2008 at 12:20pm

First of all - it's really annoying that if you search for two terms in this forum it searchs for "a OR b", instead of "a AND b". It would make finding answers to questions that have already been asked a lot easier (or possible).

Secondly, wonder if someone can help me enabling php code colouring in content - specifically for the blog module, but for other pages too. I've dug into the HTMLBBCodeParser functions and tried to create a new filter that extracts a tag (eg "[php5]") and applies hightlight_string to the content, but the parser doesn't like it.

Has anyone done this already, have a plug-in or can otherwise help? Thanks!