lightoj-dev / bugs-and-features

This repository is only for tracking bugs and feature requests on LightOJ
14 stars 1 forks source link

Basic "Code Template" after selecting a language in Editor Section. #175

Closed Sakib62 closed 11 months ago

Sakib62 commented 1 year ago

Issue

Proposal

It would be useful if a basic template code was shown in the selected language.

The basic template could look like this in C++17:

#include <bits/stdc++.h>
using namespace std;

int main() {
    //Add some code
    return 0;
}

Alternative

Or, a feature to let user save one / more snippet and choose one of them. After selecting a language, that chosen snippet should auto appear in editor.

jan876 commented 11 months ago

added.