alucardthefish / CodeNowHere

CLI application to create almost any programming language file!
Other
14 stars 18 forks source link

Added support for PL/SQL. #15

Closed joey2031 closed 4 years ago

joey2031 commented 4 years ago

Description

Fixes #1

Type of Change:

How Has This Been Tested?

I ran my PL/SQL code in a PL/SQL editor to confirm the hello world works

Checklist:

alucardthefish commented 4 years ago

Hey @joey2031 what is the extensions for PL/SQL? I think you missed to add that info to extdata/lang.dat

I don't know much about PL/SQL, but searching a little bit I think in order to make it functional it must be linked with extension files .pls instead of .sql since the hello world example provided by you would never be applied if it's associated with .sql extension. (thanks for moving .sql to its corresponded line)

exdata/lang.dat should be something like this:

.pls : plsql (recall that plsql must match to .tpl filename provided)

Lastly, please use lower case for the filename of extdata/plsql.tpl instead of extdata/PLSQL.tpl

alucardthefish commented 4 years ago

Also add .pls to the third line of extdata/InlineComments.txt

joey2031 commented 4 years ago

Hey @joey2031 what is the extensions for PL/SQL? I think you missed to add that info to extdata/lang.dat

I don't know much about PL/SQL, but searching a little bit I think in order to make it functional it must be linked with extension files .pls instead of .sql since the hello world example provided by you would never be applied if it's associated with .sql extension. (thanks for moving .sql to its corresponded line)

exdata/lang.dat should be something like this:

.pls : plsql (recall that plsql must match to .tpl filename provided)

Lastly, please use lower case for the filename of extdata/plsql.tpl instead of extdata/PLSQL.tpl

I just did some research, turns out it can be .sql or .pls but its better practice to use .pls since it indicates its a pl/sql script (didn't know that before). I can change it to .pls and fix the exdata/lang.dat file. Will also fix the file name. https://stackoverflow.com/questions/32688805/practical-difference-between-pls-and-sql-file-in-oracle

alucardthefish commented 4 years ago

I just did some research, turns out it can be .sql or .pls but its better practice to use .pls since it indicates its a pl/sql script (didn't know that before). I can change it to .pls and fix the exdata/lang.dat file. Will also fix the file name. https://stackoverflow.com/questions/32688805/practical-difference-between-pls-and-sql-file-in-oracle

Cool! thank you very much

joey2031 commented 4 years ago

I just did some research, turns out it can be .sql or .pls but its better practice to use .pls since it indicates its a pl/sql script (didn't know that before). I can change it to .pls and fix the exdata/lang.dat file. Will also fix the file name. https://stackoverflow.com/questions/32688805/practical-difference-between-pls-and-sql-file-in-oracle

Cool! thank you very much

Fixed everything, do I make a new PR? If you need me to fix anything else just let me know!

alucardthefish commented 4 years ago

Fixed everything, do I make a new PR? If you need me to fix anything else just let me know!

Almost done! just rename your file from extdata/PLSQL.tpl to extdata/plsql.tpl

Don't worry! keep commiting your changes to this same PR

joey2031 commented 4 years ago

Fixed everything, do I make a new PR? If you need me to fix anything else just let me know!

Almost done! just rename your file from extdata/PLSQL.tpl to extdata/plsql.tpl

Don't worry! keep commiting your changes to this same PR

Fixed it!

alucardthefish commented 4 years ago

@joey2031 I just merged your work! Thanks for your contribution