#includeinto highlighted beauties like this:int main() { printf("Hello, world!\n"); }
#include
int main() {
printf("Hello, world!\n");
}
The steps are loosely defined at the highlight.js home here.
- Click the "Template" link on your Blogger page.
- Click "Edit HTML"
- Add the following to your <head>...</head>:
<link href='http://yandex.st/highlightjs/7.2/styles/ir_black.min.css' rel='stylesheet'/> <script src='http://yandex.st/highlightjs/7.2/highlight.min.js'/> <script> hljs.initHighlightingOnLoad(); </script>
- Wrap your code in <pre><code> # YOUR CODE HERE </code></pre> tags.
- There is no step five. That's it!
I have problem when i insert tag for example
ReplyDeleteit will appear nothing but pre only
how you can insert tag?
oh yeah, i have created post in html editing
Cool. It works. Thank you.
ReplyDeletethank you so much! very usefully for me!
ReplyDeleteWow, great website! I absolutely appreciated the articles material! Please keep it up writing about these postings, I’m able to more likely be subscribing subsequent!
ReplyDeletewebsite design
I want to thanks to you for that. It's really working good but I have a problem like this: When I write the more or long codes in one line, the codes are overflow the code block :(
ReplyDeleteHow do I solve this problem?
Easton Bell Electrical are your Melbourne based electricians, and it is our priority that
ReplyDeletewe provide you with a friendly and courteous service while being professional and well presented.
We pride ourselves on being on time and discussing with you what work suits you best. And best of all,
We Clean Up!Brighton Electrician
Thanks Mike. Keep up the good work
ReplyDeleteReally cool. Thanks a lot !
ReplyDeleteAfter reading highlight js documentation, I was still missing a step. This blog post is much clearer and easy to understand. Brilliant - thanks! :)
ReplyDeletecan i use this code into textarea ? thank you.
ReplyDelete