How to configure google prettify.js to blogger

Thursday, August 21, 2014

Adding prettify.js to your blogger is very simple. Go to your blogger.com page then login, Template>Edit HTML>then search for the </head> tag and paste the below code before to it.
<script language="javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js" type="text/javascript"></script>
<script language="javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/lang-css.js" type="text/javascript"></script>
<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(function() {
    prettyPrint();
});
</script>

<style type="text/css">
/* Pretty printing styles. Used with prettify.js. */

.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
.typ { color: #606; }
.lit { color: #066; }
.pun { color: #660; }
.pln { color: #000; }
.tag { color: #008; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
pre.prettyprint { padding: 2px; border: 1px solid #888; }

@media print {
  .str { color: #060; }
  .kwd { color: #006; font-weight: bold; }
  .com { color: #600; font-style: italic; }
  .typ { color: #404; font-weight: bold; }
  .lit { color: #044; }
  .pun { color: #440; }
  .pln { color: #000; }
  .tag { color: #006; font-weight: bold; }
  .atn { color: #404; }
  .atv { color: #060; }
}
</style>
Done..1st part is completed. Then while you post html or java or some code snippet in your blogger you should use the code tag to insert java or c or html code inside these tags.. Copy the below code snippet and paste it in your blog posts.Before putting your java code you can parse it and paste the java code into the pre tags. Parse your java code here: http://www.blogcrowds.com/resources/parse_html.php
<pre class="prettyprint">
your code here......
</pre>
Check your updated post with the code and change the css styles as you need. Below is the test code to run the prettify.jsp
import java.util.HashSet;
class ConvertHashSettoArray{ 
  public static void main(String[] args) {
     // Create a HashSet
     HashSet hset = new HashSet();
 
     //add elements to HashSet
     hset.add("Element1");
     hset.add("Element2");
     hset.add("Element3");
     hset.add("Element4");
 
     // Displaying HashSet elements
     System.out.println("HashSet contains: "+ hset);
 
     // Creating an Array
     String[] array = new String[hset.size()];
     hset.toArray(array);
 
     // Displaying Array elements
     System.out.println("Array elements: ");
     for(String temp : array){
        System.out.println(temp);
     }
  }
}

Read more...

Asus ZenPhone 5 Available on Flipkart

Monday, August 18, 2014

Asus ZenFone 5 now via Flipkart. It was announced by Asus that it will put 10,000 units of this smartphone on sale for an exclusive sale on Flipkart Go and Check it now...
<a href="http://www.flipkart.com/asus-zenfone-5-a501cg/p/itmdxza4ystyqnrf?pid=MOBDXZ9WZZGHFMTG&affid=muralidhar">Buy Asus Zenfone 5 A501CG from Flipkart.com</a>

<a href="http://www.flipkart.com/asus-zenfone-5-a501cg/p/itmdxza4ystyqnrf?pid=MOBDXZ9WZZGHFMTG&affid=TrackingID">Buy Asus Zenfone 5 A501CG from Flipkart.com</a>

The ZenFone 5 is available in both 8GB and 16GB versions. Currently some colour variants like Gold and Red have already gone 'out of stock' on Flipkart and users are asked to register their email ids to inform about the next availability of the same. The 8GB version costs Rs 10,000 while the 16GB phone costs Rs 12,999. As Asus launched a series of other Zenfone models like Zenfone 4, 4.5 and 6, last month the company claimed to have sold 40,000 Zenfone units in just four days in India.

The dual-SIM facilitated Zenfone 5 sits between high-end Zenfone 6 and low-end Zenfone 4 and it sports a 12.7-cm (5-inch) screen. It also features 1280 x 720 pixel IPS display, 8MP rear camera, 2MP front camera for selfies and video calls, 2GHz Intel Atom dual-core processor and expandable memory up to 64GB via microSD card. 

Read more...

Nataraz dot in for java updates and interview questions

Wednesday, July 30, 2014

For java updates and most frequently asked questions you can visit nataraz.in blog. The recent post is here is " Naming Conventions for Identifiers.


Read more...

Launch of "Football World Cup Frenzy" and Update on Moto E stock

Saturday, June 7, 2014

With the FIFA World Cup just round the corner, Flipkart has come up with an awesome page for football frenzy fans out there. All the merchandise related to the world cup is available at http://www.flipkart.com/football-frenzy

IMPORTANT UPDATE

Moto E would be back in stock today (tentatively around 12 noon). Please keep a close watch on flipkart.

Also, Please find below details of some amazing offers running on the website currently.

1.  Offer Detail: Extra 10% off on Laptops with Credit Card /Debit Card or NetBanking of ANY BANK
     Landing Page:

     Validity:  10th June 2014

2.  Offer Detail: Free Nivea Shaving Foam and Balm with Philips AT890 and AT620 Shavers
     Landing Page:
     Validity:  12th June 2014
 
3. Offer Detail: Buy a brand new TV and get upto Rs 12,000 off on exchange of an old TV.
    Landing Page:

4. Offer Detail: Minimum 50% Off on Perfumes
    Landing Page:


Read more...

Woman and men Gets Completely Naked on Argentina’s Dancing with the Stars

Saturday, December 24, 2011


Woman Gets Completely Naked on Argentina’sDancing with the Stars

When Nancy Grace slipped a nipple onDancing with the Stars, it caused a huge uproar. Now imagine if Nancy Grace ripped off her top, exposed her breasts, humped her partner, took off her G-string, and appeared completely naked. Oh, and Nancy Grace was a gorgeous model. That's what happened Sunday on Argentina's version of Dancing with the Stars.
If you're an American you're used to most network television being squeaky clean, but this is Argentina so this is only safe for work if you work at a Nevada brothel.

Read more...

Click Keypad watch displays the time and date in a unique way

At first glance, it might be hard for you to tell how the Click Keypad watch is a watch at all. Its face features a keypad like you might find on your computer, with no display to show you the time, date, or any other information like a traditional watch might.



for more details clik here



Read more...


MP3 Cut is a simple Web 2.0 utility that enables you to cut out pieces of a MP3 files without having to decode that MP3. The tool cuts the MP3 at the frame level without losing the quality of your MP3.
You don't need to upload MP3, CutMP3.net cuts MP3 locally. Cut MP3 files online for Free!


Read more...

Good place to painting online


A Web Whiteboard is touch-friendly whiteboard app that lets you use your computer, tablet or smartphone to easily draw sketches, collaborate with others and sharethem with the world.
Works on all modern browsers, no installation needed.


Read more...

frimp3 to download Tamil sogns

Sunday, October 2, 2011

Frimp3 site is very good site to download new songs..in the internet all ...you can find routhiram songs also....
Add caption


http://www.frimp3.net

Read more...

Tamilmp3Corner.net for Tamil mp3 songs download

Friday, September 30, 2011

Tamil mp3 corner having good collection of tamil mp3 songs to Download . The admin of this site is keep uploads the songs in his site and publishes the new songs for his visitors.



Good site to Download Songs.http://www.tamilmp3corner.net

Follow on Facebook: http://www.facebook.com/group.php?gid=131554623556077&v=wall

Read more...

  © MyClipta Reserved by myclipta.blogspot.com 2009

Back to TOP