how to setup syntax highlighter on blogger new interface.I did try with many options but till didn't work.please give any suggestions .
相关问题
- Using relative links in Blogger
- Vim syntax highlighting of doxygen style docstring
- Notepad++ : Custom Syntax Highlighting for .txt fi
- Hiding text with QSyntaxHighlighter
- “Unable to get value of the property 'appendCh
相关文章
- How to display the lists of all posts on a Blogger
- How to use blogger video as iframe (Error 400)
- blogger b:if statement
- Customize syntax highlightin in canopy
- How to check if a post has a specific label (using
- VSCode configure syntax highlighting to match a st
- What does the three slashes in javascript do?
- Use vim syntax definition with sublime-text2
1. First, take backup of your blogger template
2. After that open your blogger template (In Edit HTML mode) & copy the all css given in this link before
</b:skin>
tag3. Paste the followig code before
</head>
tag4. Paste the following code before
</body>
tag.5. Save Blogger Template.
6. Now syntax highlighting is ready to use you can use it with
<pre></pre>
tag.7. You can Escape your code here.
8. Here is list of supported language for
<class>
attribute.Depending on your template, the SyntaxHighlighter JavaScript code may run before the content has loaded. In that case, changing the code to run after a short timeout should fix the problem. Try this in the
<head>
of your template HTML:You can add further customisation of defaults before the call to
ScriptHighlighter.all()
.If you want to customise the look and feel of the SyntaxHighlighter code display, add some CSS like this:
The
!important
is necessary to override the SyntaxHighlighter theme definitions.Checkout http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html
It's a really easy "SyntaxHighlighter for Blogger" tutorial with screenshots and everything.
You should be up and running in only a few minutes.
Also, the tutorial is built around the "new interface" you're referring to.
Hope this helps. Happy coding.