Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Prettify

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35236

    I’m trying to implement Prettify on a design I am creating, and I’m having trouble getting to to work.

    I’ve tried implementing it similar to Chris has done here on CSS Tricks, but I can’t seem to get the code to highlight in the different colours.

    The site I’m trying to implement it on is at http://b85media.net/

    #90947
    Mottie
    Member

    Hi itsonlybarney!

    I don’t see a “prettify.css” file being loaded, unless you have it integrated into another stylesheet.

    The “prettyprint” class isn’t being used with the

    
    

    tag, you can also set the language as follows (ref):

    
    

    And lastly, change the way you load the script to this:

    jQuery(document).ready(function($){
    prettyPrint();
    });
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.