Open alucardthefish opened 4 years ago
Hello, I would love to work on this, I just wanted to ask: I noticed you have SQL but how about PL/SQL (the hello world is different) Should I add it to SQL.tpl or make a new file called PLSQL.TPL? Thanks!
Hi @joey2031
I've been a little busy this week! Feel free to make your contribution. I think this weekend I will be merging your work!
Thank you!
Hi @joey2031
I've been a little busy this week! Feel free to make your contribution. I think this weekend I will be merging your work!
Thank you!
Sounds good, I already made a PR. Thank you so much and have a great day!
I would like to work on this issue.
Supporting more programming languages
Base in the contribution flow and steps present here create your branch and start contributing.
First check that the language you want to add is not already in the file.
You can edit the extdata/lang.dat file; adding new programming language file extensions using the following format: append below the last line of the file
for instance:
.rb .rbw : ruby
Then you can edit extdata/inlineComments.txt. There you can add the extensions according to inline comment character(s). It follows the same convention like before, but after the colon is now the inline comment character(s) specified instead of nameoflanguage.
for instance: if another language extensions uses the same inline comment, then add them next to it.
.py .pyc .pyo .pyd .php .rb .rbw : # {}
otherwise, create a new line below the last line this way:.rb .rbw : # {}
The
{}
specifies the closing comment character is not required. But in a language that is required such html you could set it like this:.html .htm : <!-- -->
Then, you have to create a new file named nameoflanguage.tpl (nameoflanguage must be the same as it was in inlineComments.txt). Open it and write in the first line a sample code of line printing "Hello World" or a main function/method that prints the well known message "Hello World" too.
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.