Skip to content

Add automatic boilerplate code for other languages  #3

Open
@brtwrst

Description

@brtwrst

We have automatic boilerplate code for java snippets but there are other languages that could use this functionality as well.

Identify a language that requires some boilerplate code added every time and extend the codeswap.py file with automatic boilerplate for that language if it is not already present in the entered code.

Example:
when you want to run C code like this:

#include <stdio.h>
printf("hello word!");

it will not work because it needs main() {}
make it so that it is automatically added and the code will be interpreted as

#include <stdio.h>
int main() {
  printf("hello word!");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions