JavaScript code formatter function for my website
I am in search for a single function to beautify code. I will get source code in a DIV dynamically. How can I format that code.. I don't want any command line tool.  Please someone help me..   
  
I want a function like  
  
      hilite($('.codeParent'));
This should replace code with formatted code.. I have googled and found many plugins but I could not find anything that suits to my need.
JavaScript code formatter function for my website
===

I am in search for a single function to beautify code. I will get source code in a DIV dynamically. How can I format that code.. I don't want any command line tool.  Please someone help me..   
  
I want a function like  
  
      hilite($('.codeParent'));
This should replace code with formatted code.. I have googled and found many plugins but I could not find anything that suits to my need.