function TfrmLibrary.lpad(data, len: Integer; add: String):String;
var
    i: Integer;
    tmp: String;
begin
    tmp:='';
    for i:=0 to len-Length(IntToStr(Data))-1 do
        tmp:=tmp+add;
    Result:=tmp+IntToStr(Data);
end;

Look code above…if you can post like this, it’s easy way to show your code a like language syntax. Download here the syntaxhighlighter plugin. Just copy the plugin to /wp-content/plugins/ then in your admin area, choose plugins menu then activated this plugin.

Just wrap code in your post editor [sourcecode language='your code language'] your code here [/sourcecode] then post.

The Language Code for this plugin

  • C++ — cpp, c, c++
  • C# — c#, c-sharp, csharp
  • CSS — css
  • Delphi — delphi, pascal
  • Java — java
  • JavaScript — js, jscript, javascript
  • PHP — php
  • Python — py, python
  • Ruby — rb, ruby, rails, ror
  • SQL — sql
  • VB — vb, vb.net
  • XML/HTML — xml, html, xhtml, xslt
  • Note: you must open your footer.php which in your theme. And make sure your theme’s footer has `<?php wp_footer(); ?>` somewhere in it, otherwise the JavaScript highlighting files won’t be loaded. If not just put’s the code like this

    
    <font size="2"></div></font><font size="2"><div class="FBG">
    <div class="Footer">
    <p><strong>Copyright &copy; 2007 - <? bloginfo('name'); ?> - is proudly powered by <a style="text-decoration: none;" href="http://www.wordpress.com/" mce_href="http://www.wordpress.com/">WordPress</a></strong> <br />
    
    Dilectio Theme is created by: <a href="http://designdisease.com/" mce_href="http://designdisease.com/" title="Professional Blog Design">Design Disease</a> brought to you by Smashingmagazine.com <br />
    
    load for <?php echo get_num_queries(); ?> queries. just <?php timer_stop(1); ?> seconds and
    
    <?php erw_print_country("you are from : " ); ?></p>
    
    </div>
    
    </div>
    // here code i put and javascript can load 
    <?php wp_footer();?>
    </body>
    </html>
    

    Happy try guy’s