The following properties are available regardless of the language to be processed:
The tabSize property specifies how many spaces are generated for each tab found in the source code. The default value is 2.
| HTMLConverter | int getTabSize() void setTabSize( int size) |
|
| Code2Web | code2web ... --tabSize= xxxxx ... | |
| <c2w:convert> | <c2w:convert ... tabSize="size" ... > |
The lineSize property allows to restrict the width of the generated output to a specified number of columns. The default value is 999, which is virtually equivalent (in any human-readable source code) to "unlimited", and can be set to any value. When the length of a source code line exceeds the value set by lineSize, the source is wrapped to the next line automatically. Wrapping takes place only on word boundaries, and the set of characters that is considered to be a "word delimiter" is language-dependant.
Here is an example of what happens with different line sizes:
0001// CDATA section 0002 case 4: 0003 parentNode.appendChild( root.createCDATASection( htmlNode.nodeValue ) ); 0004 return; 0005
0001// CDATA section 0002 case 4: 0003 parentNode.appendChild( root.createCDATASection( htmlNode.nodeValue ) ); 0004 return; 0005
0001// CDATA section 0002 case 4: 0003 parentNode.appendChild( root. createCDATASection( htmlNode.nodeValue ) ); 0004 return; 0005
The standAlone property specifies if a stand-alone HTML is being generated. If set to true, a valid XHMTL-Transitional document will be generated with the appropriate DOCTYPE. All the configured stylesheets will be linked in using <LINK elements. If set to false, only the source code itself will be generated, and the generation of stylesheet links will depend on the value of the generateCSSLinks property.
| HTMLConverter | boolean getStandAlone() void setStandAlone( boolean Value ) |
|
| Code2Web | code2web ... --standAlone = xxxxx ... | |
| <c2w:convert> | <c2w:convert ... standAlone="style" ... > |
The default value of standAlone is true, except for the JSP tag, for which it is false.