zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 48 forks source link

Add problem statement template options. Fix issues with multiline args. #105

Closed vexorian closed 10 years ago

vexorian commented 10 years ago

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.

For example:

options {
                    gridArrays         = true
                    fancyExampleNumber = false
                    showTags           = false
                    showVariableNames  = false
                    resizeImages       = false
                    colorThemeBlack       = true
}

Result is: screenshot

zen0wu commented 10 years ago

This is bitchen! Thanks!