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:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SilverStripe and Prettify

Go to End



Community Member, 9 Posts

26 July 2013 at 6:57pm

Edited: 26/07/2013 6:59pm

Hi everyone,

I have installed prettify on the website with SS and it seems to generally work but I can't control the style of the code being displayed which seems to be conflicting with the CSS from SS. The CSS of my website is pretty simple:

and I have added these 2 lines to the main template:

<script src="/js/google-code-prettify/run_prettify.js"></script>
<link rel="stylesheet" type="text/css" href=""/>

Prettify runs because I can see the line being displayed in the page (and I can see it running in the Safari debug console) but the way the code is displayed is simply not correct. I am dumb when it comes to CSS and I am really not an expert with SS. I am sure that I am doing something wrong that will be obvious for an expert. I really need help on this one, as I am trying to maintain this website on my own without any other help.

Thanks a lot for you time and expertise. Much appreciated.

First file: wrong result (on my website)
Second file (28): what I should get