Source-Highlight for Windows - 소스코드를 html로 변환
Posted 2008/06/27 01:00|
|
|
댓글 하나가 운영자에겐 커다란 힘이 됩니다!
Source-Highlight for Windows
Source-Highlight: convert source code to HTML
Version
1.2.1
Description
This package is a collection of programs that given a source file,produce a document with syntax highlighting. At the moment itcontains GNU java2html and GNU cpp2html.
Homepage
http://www.gnu.org/software/src-highlite
Requirements
- Windows95/98/2000/NT with msvcrt.dll. If msvcrt.dll is not in your Windows/Systemfolder, get it from Simtelnetor by installing Internet Explorer 4.0 or higher
Download
source-highlight-1.2.1 can be downloaded from the GnuWin32 download page.
Installation
General Installation Instructions
출처 : http://gnuwin32.sourceforge.net/packages/source-highlight.htm
=================================================================================================================
[ 설치 / VS에서 사용 ]
- 링크된 사이트에서 파일을 찾거나 첨부된 파일을 실행하여 적당히 Next를 해가며 설치한다.
- VS 메뉴에 "도구 -> 외부도구 -> 추가"를 선택한다.
- 제목 : 아무거나 작성(예>highlight), 명령 : 설치된 폴더에서 "bin\source-highlight.exe"를 선택,
인수 : -s cpp -f html --data-dir="설치폴더경로\share\source-highlight"
--line-number-ref "$(ItemPath)" -i "$(ItemFileName)$(ItemExt)" -o STDOUT
※ "\share\source-highlight" 폴더내의 ~.style 파일들(예>default.style)을 수정함으로써 키워드 색 등을 변경할 수 있다.
[ 적용예 ]
1: #include <iostream>
2: using namespace std;
3:
4: int main()
5: {
6: return 1;
7: }
위의 정보가 도움이 되셨나요? 그렇다면 댓글 하나만 남겨주세요.
댓글 하나가 운영자에겐 커다란 힘이 됩니다!
- Filed under : 고물창고
- Tag : code highlight, source highlight, Source-Highlight for Windows - 소스코드를 html로 변환
- 2 Comments Trackback


src-highlite-2.1.2.exe
default.style
송창기
| 2008/09/29 05:05 | PERMALINK | EDIT | REPLY |어떻게 하는 건지 잘.. 모르겠는데요
설치경로는 C:\Program Files\GnuWin32 이구요
vs2008에서 설정할려고 합니다.
VS 메뉴에 "도구 -> 외부도구 -> 추가 에서
제목 : highlight
명령 : C:\Program Files\GnuWin32\bin\source-highlight.exe
인수 : -s cpp -f html --data-dir="C:\Program Files\GnuWin32 \share\source-highlight" --line-number-ref "$(ItemPath)" -i "$(ItemFileName)$(ItemExt)" -o STDOUT
이렇게 하고 default.style를 덮어 씌우기 했습니다.
그 다음은 어디서 어떻게 해야 위의 결과를 확인 할수 있나요?
factor7@naver.com으로 알려주시면 감사하겠습니다.
LegendFinger
| 2008/09/29 10:55 | PERMALINK | EDIT | REPLY |추가하셨다면 "도구" 메뉴에 제목으로 넣어주신 "highlight"라는 메뉴가 생길거에요 클릭하시면 되겠습니다.
[주의사항]해당 파일의 경로에 한글이 포함되어있다면 제대로 동작되지 않을겁니다 이점 유의하세요