First of all, I had to rewrite the markup and CSS for examples section. It had issues when method argument values took more than one line. Also some issues with browsers with fixed code size (I do this :/). So I had to do a lot of things to make the examples section work these issues without drastically changing the way the final statement looked inside a browser. It is not great markup because I am not so great at avoid < table > using CSS.
Then I added the template options.
Color themes:
colorThemeBlack: If set to true, it uses a color scheme that hurts your eyes in the same way as the default color scheme used by the arena.
colorThemeBlue: Mimics the problem statement page in topcoder.com.
colorThemeLowContrast: dark gray background, light gray fonts.
Set all those variables to false (the default) and the theme used is white background with dark letters.
resizeImages: If set to a false, images are not resized / made to display as block. If set to a CSS size (by default "200px", it will use that resizing.
showTags: If true (default) shows [input], [output], [comment] tags in the example section.
showVariableNames . Show argument names (true by default).
fancyExampleNumber: (true by default). Enclose example number in a circle, else use X).
gridArrays: When printing the values of String[]s, if all the elements of the string are of equal length, it will show the argument in multiple lines as if it was a grid.
A patch for the HTML template.
First of all, I had to rewrite the markup and CSS for examples section. It had issues when method argument values took more than one line. Also some issues with browsers with fixed code size (I do this :/). So I had to do a lot of things to make the examples section work these issues without drastically changing the way the final statement looked inside a browser. It is not great markup because I am not so great at avoid < table > using CSS.
Then I added the template options.
colorThemeBlack
: If set to true, it uses a color scheme that hurts your eyes in the same way as the default color scheme used by the arena.colorThemeBlue
: Mimics the problem statement page in topcoder.com.colorThemeLowContrast
: dark gray background, light gray fonts.resizeImages
: If set to a false, images are not resized / made to display as block. If set to a CSS size (by default"200px"
, it will use that resizing.showTags
: If true (default) shows [input], [output], [comment] tags in the example section.showVariableNames
. Show argument names (true by default).fancyExampleNumber
: (true by default). Enclose example number in a circle, else use X).gridArrays
: When printing the values ofString[]
s, if all the elements of the string are of equal length, it will show the argument in multiple lines as if it was a grid.For example:
Result is:![screenshot](https://dl.dropboxusercontent.com/u/95690732/greed/htmloptions.jpg)