twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.06k stars 67 forks source link

Fortran support #270

Closed redscorpse closed 1 year ago

redscorpse commented 1 year ago

Allow Fortran support and any other language (allow user configuration) like Code Runner on VSCode.

hannesdelbeke commented 1 year ago

if anyone is interested in adding this new language, this PR makes a great reference for adding a new language https://github.com/twibiral/obsidian-execute-code/pull/193/files#diff-f2a4304d75490ee308ba20fc72fedeeadda5cee948e3fa1ead4b363e63a13025

redscorpse commented 1 year ago

Thank you. I've tried to modify the plugin by editing the .obsidian/plugins/execute-code/main.js file according this PR, but i think I would need to do something else because fortran is compiled like C (I've used C language as a reference), and with C you use Cling instead of compiling the code, so I have been able to add Fortran as a new language but it still doesn't work.