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.

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


803 Views

Avatar
Mast4as

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:

http://scratchapixel.com/themes/PIX/css/typography.css

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

<script src="/js/google-code-prettify/run_prettify.js"></script>
<link rel="stylesheet" type="text/css" href="http://google-code-prettify.googlecode.com/svn/trunk/styles/desert.css"/>

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