The website parses arguments of the form https://myserver.com/#arg1=value1&arg2=value2.
The recognised arguments are:
code=: plain text code. (overwritescodez; note this argument does accept unescaped code, but the browser will always display certain characters escaped, like%20for a space)codez=: compressed code using LZ-string.url=: a URL where the content is loaded from. (overwritescodeandcodez).project=: the Lean project used by the server to evaluate the code. This has to be the name of one of the projects defined in the server's config.
The server will automatically only write one of code, codez, and url based on the following
logic:
- if the code matches the one from the loaded URL, use
url - if the preferences say no comression, use
code - otherwise use
codezorcodedepending on which results in a shorter URL.
Besides storing the settings in a cookie through the settings interface, there is an option to specify them in the form https://myserver.com/?setting1=value1&setting2=value2#[arguments as above]
When a setting is not provided as URL parameter, the value from the browser store (or the default) is used.
The recognised settings are:
- Boolean settings (
trueorfalse):acceptSuggestionOnEnter: accept code editors suggestions onEnter. default:falsecompress: compress code in URL. default:truemobile: display code editor and infoview in narrow, vertically stacked, mobile-friendly mode. default: not set, i.e. inferredshowGoalNames: show goal names in Lean infoview box. default:trueshowExpectedType: expected type in Lean infoview opened by default. default:falsewordWrap: wrap code in editor box. default:true
- Non-boolean settings:
abbreviationCharacter: lead character for unicode abbreviations. values: a character. default:\theme: selection between one light and dark theme. More themes are available in the settings, but they cannot be set through the URL. values:lightordark. default:light(TODO: infererred from browser)