alucardthefish / alucardthefish/CodeNowHere

Add support for missing/new programming languages

Offen
#32 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue up-for-grabs
Vorherrschende Sprache
C++
Sterne
22
Forks
24
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Supporting more programming languages

Base in the contribution flow and steps present [here](https://github.com/firstcontributions/first-contributions) create your branch and start contributing.

First check that the language you want to add is not already in the file.

Then, you have to create a new file named **_nameoflanguage.tpl_** inside templates folder. Open it and write in the first line this:
```text
!!cnh {"suffix":["suffix1", "suffix2", "suffixN"]}
```
Where each suffix is the extension that are used for that specific language (without leading . "dot").

Just after that line you have to add the template format we are using. If the language doesn't have block comment please use it with the inline comment like this example of languages like C++ (just change the '//' for the corresponding inline comment characters of your language:

```text
// **************************************************************************************************************
// File: {{ cnh_file }}
// Author: {{ cnh_name }}
// Created: {{ cnh_date }}
{% if exists("cnh_has_copyright") %}
// {{ cnh_has_copyright }}
{% endif %}
{% if exists("cnh_description") %}
// Description: {{ cnh_description }}
{% endif %}
// **************************************************************************************************************
```

Otherwise add the format with the block comment of the corresponding language you're adding. Below there is an example of language html with its block comment. (Just replace the starting and ending block comment characters for the corresponding language you're adding)

```text

```

Then, after the header comment add a sample code of line printing "Hello World" or a main function/method that prints the well known message "Hello World" for that language you are adding. (You can always check one of the existing template files as a guide for your contribution)

Finally, do not forget to write the new language into the alphabetically ordered list in README section.

You can create a PR with a message saying what language you are adding.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.