betacode1 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

You cannot use Prettify with Dynamic Themes #239

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Choose Dynamic Themes
2. Enable Preetify

What is the expected output?  What do you see instead?
It should start highlighting your code

What version are you using?  On what browser?
Chrome Version 21.0.1180.83 m
Firefox Version 14

Please provide any additional information below.

Original issue reported on code.google.com by amirrahn...@gmail.com on 27 Aug 2012 at 7:07

GoogleCodeExporter commented 8 years ago
I'm missing some context.  "Choose dynamic themes" from what?

What should start highighting what code?

What is "Preetify"?

Original comment by mikesamuel@gmail.com on 4 Feb 2013 at 11:24

GoogleCodeExporter commented 8 years ago
Rather than open another new bug I'll just re-approach this here:

What steps will produce the problem?
1. Open Blogger "Template" setting page
2. Select any of the "Dynamic Views" templates (as opposed to "Simple", 
"Picture Window", etc)
3. Click "Edit HTML" button
4. Paste the recommended "<script/>" element just before "</head>" (or 
"</body>" even)
5. Click "Save Template", then "Close"
6. View a post in the blog with a "<pre class='prettyprint'/>" element

What is the expected output? What do you see instead?
1. Expected the code text within "<pre class='prettyprint'/>" to be hightlighted
2. Code is not hightlighted

Additional information:

Consensus from Google searches is that the post content in "Dynamic Views" 
templates is loaded much later or in a way which google-code-prettify doesn't 
catch. This seems fair since viewing the page source reveals that the content 
is not in the source at all.

Original comment by andrew.g...@gmail.com on 4 Apr 2013 at 6:43

GoogleCodeExporter commented 8 years ago
I am using Simple Template, still while editing the Template to include the 
prettify script <!--<script 
src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></s
cript>--> 

before </head> tag or before </body> tag. While save the template, it is not 
saving the template. Because, while trying to close or click back, it says:
You have unsaved changes that will be lost.

Original comment by mspsa...@gmail.com on 20 Jun 2013 at 10:11