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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Blog: Code Colouring / Forum Searches

Go to End



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!