Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for an additional language #597

Open
ghylander opened this issue Mar 3, 2022 · 1 comment
Open

Adding support for an additional language #597

ghylander opened this issue Mar 3, 2022 · 1 comment

Comments

@ghylander
Copy link

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?

@deathaxe
Copy link

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"
      }
   },
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants