Archive

Archive for the ‘Web’ Category

dp.SyntaxHighlighter – 구문 강조 스크립트

August 24th, 2006 No comments

dp.SyntaxHighlighter is a free JavaScript tool for source code syntax highlighting.

The script is meant to help a developer to post code snippets online with ease and without having to worry about applying format. People who use blogs like MovableType, .Text (dotText), dasBlog and any other system can easily add code to their posts.

If you are looking to get syntax highlighter for your blog, give dp.SyntaxHighlighter a try!

dp.SyntaxHighlighter Home Page | User Guide | Demo | Download

오늘 서핑하다가 하나 주은 소스입니다. 마땅히 붙힐 한글명이 없어 그냥 구문 강조 스크립트라고 했습니다.
textarea 태그와 자바스크립트를 이용하여 웹페이지에서 각종 소스(C# | VB & VB.NET | Delphi, Pascal | JavaScript | PHP | Python | SQL | XML, HTML, XSLT and any other XML style code)를 손상없이 보기좋게(?) 보여주는 스크립트입니다.
제작사에 의하면 Internet Explorer 6 on Windows XP SP2 , Firefox 1.0 , Safari 2.0 , Opera 8.5 를 지원한다고 합니다.

참고로 워드프레스에서는 매 줄마다 코드 뒤에 <br />태그가 자동으로 삽입이 되더군요. functions-formatting.php에 있는 wpautop 함수를 수정해서 줄마지막에 있는 <br />태그 하나만 제거하면 해결이 가능할 것도 같은데, 아직 방법을 못 찾겠네요..

2006-09-22 23:43 덧붙임:
조금 더 테스트를 해 봐야 되겠지만 082님의 도움으로 일단은 해결된 것 같습니다. 다음 URL을 참고하세요. http://www.wordpress.co.kr/forum/viewtopic.php?t=450 참고하세요

2006-09-26 23:26 덧붙임:
br 태그가 해결되니, 이제 또 따옴표 부분이 문제가 생기는군요.. ㅠ.ㅠ
워드프레스에 적용하는 것은 포기했습니다. ㅠ.ㅠ

2006-10-10 00:40 덧붙임:
[WP] Preserve Code Formatting 플러그인이 디자인 부분은 약하지만, 코드를 정확하게 표현하는 능력은 월등하네요.. 참고하세요..


Categories: Web Tags:
Get Adobe Flash playerPlugin by wpburn.com wordpress themes