이전에 Java2Html plugin 설치를 통하여 기본적으로 JSPWiki에 플러그인 설치에 대해서 알아보았다. 이번에는 Java2Htmll plugin 의 기본적인 설정을 수정하는 방법에 대해서 알아보자. JSPWiki를 설치하여 운영중이거나 이미 사용해본 사람이라면 쉽게 알 수 있지만 언제나 초보는 있으니깐^^
이에 해당하는 설명은 실제로는 여기 JSPWiki 웹 사이트에 나왔있다. 여기서는 아래와 같이 간략하게 설치해 보기로 하자.
1. java2html.properties 파일을 다운로드 받는다.
2. java2html.properties 파일을 "%TOMCAT_HOME%/webapps/jspwiki/WEB-INF/classes" 디렉토리에 위치시킨다.
3. java2html.properties 파일을 살펴보면 다음과 같다.
#Sun Jul 23 14:28:11 CEST 2006
defaultStyleName=Eclipse
showFileName=false
showTableBorder=false
showLineNumbers=false
showJava2HtmlLink=false
horizontalAlignment=left
TAB_SIZE=2
Background_COLOR=255,255,255
Background_BOLD=false
Background_ITALIC=false
Line\ numbers_COLOR=128,128,128
Line\ numbers_BOLD=false
Line\ numbers_ITALIC=false
Multi-line\ comments_COLOR=63,127,95
Multi-line\ comments_BOLD=false
Multi-line\ comments_ITALIC=false
Single-line\ comments_COLOR=63,127,95
Single-line\ comments_BOLD=false
Single-line\ comments_ITALIC=false
Keywords_COLOR=127,0,85
Keywords_BOLD=true
Keywords_ITALIC=false
Strings_COLOR=42,0,255
Strings_BOLD=false
Strings_ITALIC=false
Character\ constants_COLOR=153,0,0
Character\ constants_BOLD=false
Character\ constants_ITALIC=false
Numeric\ constants_COLOR=153,0,0
Numeric\ constants_BOLD=false
Numeric\ constants_ITALIC=false
Parenthesis_COLOR=0,0,0
Parenthesis_BOLD=false
Parenthesis_ITALIC=false
Primitive\ Types_COLOR=127,0,85
Primitive\ Types_BOLD=true
Primitive\ Types_ITALIC=false
Others_COLOR=0,0,0
Others_BOLD=false
Others_ITALIC=false
Javadoc\ keywords_COLOR=127,159,191
Javadoc\ keywords_BOLD=false
Javadoc\ keywords_ITALIC=false
Javadoc\ HTML\ tags_COLOR=127,127,159
Javadoc\ HTML\ tags_BOLD=false
Javadoc\ HTML\ tags_ITALIC=false
Javadoc\ links_COLOR=63,63,191
Javadoc\ links_BOLD=false
Javadoc\ links_ITALIC=false
Javadoc\ others_COLOR=63,95,191
Javadoc\ others_BOLD=false
Javadoc\ others_ITALIC=false
Undefined_COLOR=255,97,0
Undefined_BOLD=false
Undefined_ITALIC=false
Annotation_COLOR=100,100,100
Annotation_BOLD=false
Annotation_ITALIC=false
4. 예를들어, 다음과 같이 수정해 보자. 처음엔 백그라운드 컬러가 "Background_COLOR=255,255,255" 이렇게 되어 있기 때문에 소스인 것을 쉽게 알아보기 힘들다. 그래서 간단하게 "Background_COLOR=255,255,176" 으로 수정해 보자.
5. 잊지 말아야 하는 것은 항상 WAS를 재가동 해 주어야 한다는 것이다.
6. 이제 각자의 구미에 맞게 properties를 수정하면 된다.
댓글 없음:
댓글 쓰기