Je entend, et je me sens
today » Tuesday, 6th January 2009
contents
comments
Post Your Code
Thursday, 10th April 2008 | 15:13 pm by Thevemo™

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

    
    <span style="font-size: x-small;"> </span>
    
    <span style="font-size: x-small;"> </span>
    <div class="FBG">
    <div class="Footer">
    
    <span style="font-size: x-small;"><strong>Copyright © 2007 -  - is proudly powered by <a style="text-decoration: none;" href="http://www.wordpress.com/">WordPress</a></strong> </span>
    
    <span style="font-size: x-small;">Dilectio Theme is created by: <a title="Professional Blog Design" href="http://designdisease.com/">Design Disease</a> brought to you by Smashingmagazine.com </span>
    
    <span style="font-size: x-small;">load for  queries. just  seconds and</span></div>
    </div>
    <span style="font-size: x-small;">// here code i put and javascript can loadÂ
    

    Happy try guy’s

    You can follow any responses of Post Your Code by through RSS 2.0 feed. You can leave a comment if you like this post. So i will appreciate if you give the comment, or trackback from your own site.

    Comment to “Post Your Code”

    No comments yet.

    (required)

    (required)