Evilripper Blog

A programmer's work is never done

  • Home
  • Downloads
  • News
  • Wallpapers
  • About Me

22

Jun

Geshi Plugin (Code Highlighter) Wordpress

Posted by evilripper  Published in wordpress

Deans Code Highlighter

Questo plugin per wordpress permette di pubblicare righe di codice formattate e con le parole chiave evidenziate… addirittura nel linguaggio php mette un link di rimando su php.net su ogni parola chiave. :)

Per installare questo plugin scaricare la versione compatibile con il proprio wordpress dal sito http://www.deanlee.cn
Si appoggia al progetto open source geshi ed e’ veramente completo e molto semplice da utilizzare basta mettere il codice tra i tag <pre lang=”linguaggio”>my code</pre> con l’attributo lang settato sul linguaggio del codice sorgente che si desidera visualizzare (l’unica cosa e’ che la formattazione di default non appariva molto bella con firefox2, ma basta modificare il css e le opzioni del plugin stesso.)

Qua sotto un esempio di uno stralcio di codice in php:

  1.  
  2. function is_date($value)
  3. {
  4. if (!isset($value) || $value=="")
  5. {
  6.  return false;
  7. }
  8.  list($dd,$mm,$yy)=explode("/",$value);
  9.  if ($dd!="" &amp;&amp; $mm!="" &amp;&amp; $yy!="")
  10. {
  11. return checkdate($mm,$dd,$yy);
  12. }
  13. // die($value);
  14. return false;
  15. }

[tag]plugins[/tag]

1 comment

Multilanguages

  • English
  • Italiano

My Flikr

Flickr in the skyInto the whiteiced treesthe thin white lineiced treeSit a momentA lampiced treecollectionHot day :-D

Social Connection







Affiliates & Sponsor

Add to Technorati Favorites

Il Bloggatore


BlogItalia.it - La directory italiana dei blog

Tophost Hosting

7,532 spam comments
blocked by
Akismet

Locations of visitors to this page

Blogroll

  • Rocco Blog
  • jumping head shot
  • The Developers
  • gyf.it
  • lu01 rock band
  • Michele Focchi

Categories

  • database (1)
  • development (13)
    • CSharp (4)
    • delphi (2)
    • javascript (1)
    • php (5)
    • vb.net (1)
  • hacking (2)
  • hardware (12)
    • mobile (1)
  • internet (40)
    • cms (1)
    • google (9)
    • wordpress (1)
  • linux (5)
    • gentoo (4)
  • microsoft (2)
  • Senza categoria (3)
  • software (8)
  • videogames (6)
    • unreal tournament 3 (1)
  • winXp (2)

Archives

  • March 2010 (2)
  • February 2010 (6)
  • January 2010 (6)
  • December 2009 (4)
  • November 2009 (1)
  • October 2009 (5)
  • September 2009 (3)
  • July 2009 (2)
  • May 2009 (1)
  • April 2009 (1)
  • March 2009 (2)
  • February 2009 (1)
  • January 2009 (2)
  • December 2008 (3)
  • November 2008 (4)
  • September 2008 (3)
  • June 2008 (3)
  • May 2008 (1)
  • April 2008 (1)
  • March 2008 (1)
  • February 2008 (4)
  • January 2008 (4)
  • December 2007 (2)
  • November 2007 (4)
  • October 2007 (7)
  • September 2007 (7)
  • August 2007 (2)
  • July 2007 (1)
  • June 2007 (2)

Recent Entries

  • Hackers are not crackers
  • FileZilla Password Recovery
  • Google guilty for violation of privacy
  • Google Chrome bug Error 0xc0000005
  • Windows7 Targets Cracked Activations
  • The Pirate Bay Ip Filtered In Italy!
  • Share With Google Buzz
  • Best Free Online Games
  • Spreaker a new radio 2.0
  • Mobile as Router Wi-fi

Recent Comments

  • Andrea Carnera in AmigaOne X1000 Amiga came back?<…
  • GREY_FOX in Hackers are not crackersGoogle guilty for violation of privacyaddalo.it in Google guilty for violation of privacy
  • diggita.it in Google guilty for violation of privacy
  • GREY_FOX in Google guilty for violation of privacy
  • Elena in Spreaker a new radio 2.0AmigaOne X1000 Amiga came back?<…">luca in AmigaOne X1000 Amiga came back?<…
  • Daniele in AmigaOne X1000 Amiga came back?<…
  • Daniele in Share With Google Buzz…
  • addalo.it in The Pirate Bay Ip Filtered In Italy!