lxzliuxinzhu / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Use syntaxhighlighter on blogger.com #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use syntaxhighlighter on blogger.com with default setting.

What is the expected output? What do you see instead?
All code become one line, connected with <br />

What version of the product are you using? On what operating system?
1.5.0

Please provide any additional information below.

When use syntaxhighlighter on blogger.com with default setting, because
blogger.com will convert line breaks to <br />, and it will break the
syntaxhighlighter formatting. Although it is not syntaxhighlighter's
problem, but many people use blogger.com was confused with this problem.
May be syntaxhighlighter can add an option to handle this problem.

I provide a hardcode fix about this problem. 

Original issue reported on code.google.com by wctang on 4 Jul 2007 at 2:38

Attachments:

GoogleCodeExporter commented 8 years ago
Yes many people are using Blogger and get frustrated. What a pitty for a Google
product ;-) See
http://quainttech.blogspot.com/2007/04/syntax-highlighting-on-blogger.html

Original comment by jeanmich...@gmail.com on 4 Jul 2007 at 10:21

GoogleCodeExporter commented 8 years ago
Check out http://21croissants.blogspot.com/

I applied the patch from wctang but I could not make it worked. About to give 
up ...
Blogger is not my friend anymore!

Original comment by jeanmich...@gmail.com on 4 Jul 2007 at 10:55

GoogleCodeExporter commented 8 years ago
After check out the source code in the <pre> element on
http://21croissants.blogspot.com/, the code line is not breaked by <br /> or 
new lines :)

A example of the patch http://blog.wctang.info/2007/06/blogger.html 
It works for me on Firefox2 and IE6+

Original comment by wctang on 5 Jul 2007 at 1:05

GoogleCodeExporter commented 8 years ago
Thanks wctang. It did work on my blog now! Good patch. I got confused by google 
docs.
When publising with google docs, the CR and spaces within the PRE tag 
dissapear!!!

Original comment by jeanmich...@gmail.com on 6 Jul 2007 at 3:39

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 5 Aug 2007 at 1:58

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 5 Aug 2007 at 2:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
help me.

I tried use syntaxhighlighter on my blog what is http://coding-tips.blogspot.com

but syntaxhighlighter didn't work.

maybe syntaxhighlighter.css didn't loaded...

what kind problem on my blog.

healp plz...

at last, sorry for my little English

Original comment by lovely...@gmail.com on 29 Jan 2008 at 2:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
copy to clip board fuction is not working   in my blog <a href="http://blogger-
godown.blogspot.com">http://blogger-godown.blogspot.com</a>

Original comment by rnbut...@gmail.com on 15 Jan 2009 at 7:53

GoogleCodeExporter commented 8 years ago
copy to clip board fuction is not working   in my blog <a href="http://blogger-
godown.blogspot.com">http://blogger-godown.blogspot.com</a>

Original comment by rnbut...@gmail.com on 3 Feb 2009 at 7:27