Headers and Footers

back to index

Before the actual beginning of the source code, a header may be generated. The header can consist of a title (which may possibly be used as a hyperlink) and an author. By default these are not set and thus not generated.

Title

The title property is used to set a title for the generated output. The style of the title is controlled by the titleStyle property, which has a default value of "title"

HTMLConverter   String getTitle()
void setTitle( String title )
Code2Web   code2web ... --title = xxxxx ...
<c2w:convert>   <c2w:convert ... title="title" ... >

 

HTMLConverter   String getTitleStyle()
void setTitleStyle( String style )
Code2Web   code2web ... --titleStyle = xxxxx ...
<c2w:convert>   <c2w:convert ... titleStyle="style" ... >

 

The title can be turned into a hyperlink by setting the titleLocation property to the URL you want.

HTMLConverter   String getTitleLocation()
void setTitleLocation( String location )
Code2Web   code2web ... --titleLocation = xxxxx ...
<c2w:convert>   <c2w:convert ... titleLocation="url" ... >

Author

Right below the title, an author can be rendered. The text that appears is stored in the author property, and the style of the generated output is controlled by the authorStyle property.

HTMLConverter   String getAuthor()
void setAuthor( String title )
Code2Web   code2web ... --author = xxxxx ...
<c2w:convert>   <c2w:convert ... author="author name " ... >

 

HTMLConverter   String getAuthorStyle()
void setAuthorStyle( String style )
Code2Web   code2web ... --authorStyle = xxxxx ...
<c2w:convert>   <c2w:convert ... authorStyle="style" ... >

 

The author can be turned into a hyperlink by setting the authorLocation property to the URL you want.

HTMLConverter   String getAuthorLocation()
void setAuthorLocation( String location )
Code2Web   code2web ... --authorLocation = xxxxx ...
<c2w:convert>   <c2w:convert ... authorLocation="url" ... >