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.

General Questions

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

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

SilverStripe and Prettify


Reply

235 Views

Avatar
Mast4as

26 July 2013 at 6:57pm (Last edited: 26 July 2013 6:59pm), Community Member, 9 Posts

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