at no avail.put quote hereand for code
put code here
So you either do your own research or don't add code at all as it wont show up without a good script and wait for blogger to come up with something. I went for the first option. Throughout my search 4 blogs stand out and they all talk about SyntaxHighlighter the one I eventually went for and the google-code-prettify.
At last I found this blog of Matthew V Ball where it's all nicely explained and easier to implement into the theme code:
The first problem I had with it was that it would't save my theme since there was a problem with the XML script so after reading few comments I gave a try to changing the end script tag for the step 3. I replaced the /script to script/ and all got saved.
However after adding the code to my post on publish post I get the "ERROR
Your HTML cannot be accepted: Tag is broken: A" All the code should be in between div tags pre name="code" class="cpp" text here and end with pre
What I did to get it to "work" was to tick the box for "Stop showing HTML errors for the body of this post". Now I get the code and everything but as you might see the php code is duplicated and I have some extra closing tags which should't be there. This is not perfect but as least it displays something. Another problem I have with it is that it adds spaces between code lines that I don't have in my post, as if there were /br lines.
This is the same script but not clear enough on what I need to do mainly because on www.alexgorbatchev.com is a newer version of SyntaxHighlighter with different files and I didn't know where and how to add the them to the google page and the css files come in different names and I don't know which is the one I should use..
Another interesting post I found here: http://www.newbloggingtipz.com/2009/08/how-to-add-html-codes-in-blogger-posts.html I tried it and I get the code box but the code is converted back to code so nothing is displayed. I'm not sure it works with more then html codes.
Then I found this blog of Viviann which again is not fully detailed to explain the whole process to make the script work.
If anyone has any ideas on how to make this work properly it would be greatly appreciated.