Java2Html - Properties File

 
 

Properties File

The default options for conversion output can be defined in an optional properties file.

The Java2Html library tries to load a file named java2html.properties from the classpath. If it exists the default options will be adjusted to the options defined in the properties file.

Here is a sample properties file containing all default options (Download the file):

#Wed Sep 13 21:14:42 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

Note that you do not need to overwrite all options. Just remove the properties you don't want to change.

Valid XHTML 1.0!
© Markus Gebhard (markus@jave.de), 2000 - 2008
last modified: May 4, 2008