SublimeREPL
SublimeREPL copied to clipboard
Adding support for an additional language
Hi, I want to add to this plugin support for FORTRAN, so I can run terminal scripts directly from the sublime console It is stated that this is possible, but looking at the docs I don't understand how this is done
I already have a custom build system for FORTRAN, which may help setting up the REPL support
Can I get some indications?
Ignoring the overcomplicated structure, the only thing finally needed is a reference to repl_open
with correct arguments.
The following example shows content of _Packages/User/Default.sublime-commands` to add a REPL for Gambit to Command Palette.
[
{"command": "repl_open",
"caption": "SublimeREPL: Gambit",
"args": {
"type": "subprocess",
"encoding": "utf8",
"external_id": "scheme",
"cmd": {"linux": ["gosh", "-i"],
"osx": ["gsi", "-i"],
"windows": ["gosh", "-i"]},
"soft_quit": "\n(exit)\n",
"cwd": "$folder",
"cmd_postfix": "\n",
"extend_env": {"INSIDE_EMACS": "1"},
"syntax": "Scheme.sublime-syntax"
}
},
]