I'm having trouble getting Google Code Prettify to work properly. This example works using the provided remote files:
<html> <head> <title>Google Code Prettify testing</title> <script data-brackets-id='140' src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?autoload=true&skin=sunburst&lang=css" defer="defer"> </script> </head> <body> <h1>Google Code Prettify testing</h1> <pre class="prettyprint" style="font-size: 12pt;"> <script type="text/javascript"> // This is a comment var myString = "Hello, World!"; var myInt = 42; function helloWorld(world) { for (var myInt; --myInt >= 0;) { alert(myString); } } </script> <style> p { color: pink } b { color: blue } u { color: "umber" } </style> </pre> </body> </html>
Result:

This comes from remote Prettify hosting. Note that some elements in <script> are for styling and behavior only. The following works fine:
<html> <head> <title>Prettify Default Test</title> <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> </head>
It just displays the default appearance and behavior (note that this is a different browser)

However, when I downloaded and saved the files locally, I write this:
<html> <head> <title>Google Code Prettify testing</title> <link href="google-code-prettify/src/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="google-code-prettify/js-modules/run_prettify.js"></script> </head> <body onload="prettyPrint()"> <h1>Google Code Prettify testing</h1> <pre class="prettyprint" style="font-size: 12pt;"> <script type="text/javascript"> // This is a comment var myString = "Hello, World!"; var myInt = 42; function helloWorld(world) { for (var myInt; --i >= 0;) { alert('Hello ' + String(world)); } } </script> <style> p { color: pink } b { color: blue } u { color: "umber" } </style> </pre> </body> </html>
And, as follows, none of the formatting is portable:

Below is a snapshot of the folder structure. I checked to be sure that it was exactly specified in the code ...
prettify.css

run_prettify.js

Can you offer any advice as to why he is acting this way?
source share