I am able to get a black background by setting the theme to sunburst, however the text remains black (ie: invisible unless selected). After a little digging I found out the prettify css was being loaded before Omega's alpha reset css.

I assume that this is my problem, is there a way to force prettify CSS to load last?

I should note that I am able to get everything working well by loading prettify manually through my theme instead of the module. Automatic syntax highlighting via the module is definitely preferable though.

CommentFileSizeAuthor
#7 Screen shot 2013-03-06 at 2.50.39 PM.png51.58 KBAnonymous (not verified)
#1 add_css_before_theme-1933786-1.patch1000 bytessmartinm

Comments

smartinm’s picture

StatusFileSize
new1000 bytes

Please test this patch and if it works I will commit it.

Anonymous’s picture

Thanks for the help! Unfortunately that patch ended uploading the prettify CSS one level higher than where it was at. This could be an issue with the Omega theme framework (maybe by design), because I tried various drupal_add_css() combinations in template.php and still could not get sunburst to load last.

smartinm’s picture

What Omega subtheme are you using?

I installed omega 7.x-3.1 theme in my demo site and Prettify module works well:

http://demo.smartinm.com/drupal/prettify-module?theme=omega

The sunburst.css is added after the Omega's alpha reset css.

Anonymous’s picture

I have a custom omega 7.x-3.1 sub theme created with omega tools. Will test in a demo site and report back.

Anonymous’s picture

Apparently there is something wrong with my site because testing in a sandbox with Bartik shows the module works fine out of the box. On my site, prettify doesn't even work with Bartik. I noticed the prettyprinted class doesn't get appended on my site, so it looks like i'll have to start disabling things to see whats going on.

Anonymous’s picture

Appears prettify.js is not being loaded properly on my site. Using chromes web tools to inspect and looks like the script is showing up empty. Requests for the file are being canceled?

Anonymous’s picture

StatusFileSize
new51.58 KB

Okay, well seems this might be a server issue. On localhost I had no issues with a demo site. I am seeing the same problem (prettify not....prettifying). Chrome tells me requests for the JS and CSS files were cancelled.

miss js and css files

Not sure where to take the issue now. Loading prettify manually through my theme works fine. It's just how it's loaded via the module that is wonky. Something about my server configuration possibly conflicting with how the module works. Server is nginx.

Anonymous’s picture

Status: Active » Closed (works as designed)

Fixed! A bunch of digging led me to find out requests for the JS and CSS files were generating 403 forbidden errors. Changed permissions on the files from 640 to 644 and everything works now!

smartinm’s picture

I'm glad you found a solution that works for you ;)