Apr 032012
 

UNIX에서 vi의 syntax 기능을 사용했던 개발자라면 syntax highlight 기능을 잘 알것입니다.

최근에 블로그에서도 웹기반의 소스를 아래와 같이 이쁘게 나오게 합니다.
(아래는 WP-Syntax라는 GeSHi 기반의 WordPress 플러그인입니다.)

<html>
 <head>
  <title>title</title>
 </head>

이것을 가능하게 하는 것이 GeSHi 라는 PHP 기반의 오픈소스가 있습니다.

http://qbnz.com/highlighter/

저도 제 블로그 사이트에 아래 링크로 샘플 사이트를 연결해 두었습니다.

http://blog.sukmoonlee.com/geshi/contrib/example.php

소스를 받아서 샘플 파일을 보시면 PHP 개발자라면 금방 사용할수 있으므로 참고하시면 좋습니다.

Print Friendly

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/smlee/blog/wordpress/wp-content/plugins/seo-facebook-comments/seofacebook.php on line 488

Warning: Invalid argument supplied for foreach() in /home/smlee/blog/wordpress/wp-content/plugins/seo-facebook-comments/seofacebook.php on line 490

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Plugin from the creators of Brindes :: More at Plulz Wordpress Plugins