Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » SilverStripe and Prettify

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

Page: 1
Go to End
Author Topic: 229 Views
  • Mast4as
    Community Member
    9 Posts

    SilverStripe and Prettify Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.