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
.ext1 .ext2 .extN : nameoflanguage
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.