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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


993 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!