Skip to content

Instantly share code, notes, and snippets.

@DDuarte
Created June 5, 2012 12:44
Show Gist options
  • Save DDuarte/2874747 to your computer and use it in GitHub Desktop.
Save DDuarte/2874747 to your computer and use it in GitHub Desktop.
Sublime Text 2 + SublimeREPL + CINT

Data/Packages/SublimeREPL/config/C++/Default.sublime-commands:

[
    {
        "caption": "SublimeREPL: C++",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_cpp",
            "file": "config/C++/Main.sublime-menu"
        }
    }
]

Data/Packages/SublimeREPL/config/C++/Main.sublime-menu:


[
     {
        "id": "tools",
        "children":
        [{
            "caption": "SublimeREPL",
            "mnemonic": "r",
            "id": "SublimeREPL",
            "children":
            [
                {"command": "repl_open", 
                 "caption": "C++",
                 "id": "repl_cpp",
                 "mnemonic": "",
                 "args": {
                    "type": "subprocess",
                    "external_id": "cpp",
                    "encoding": "utf8",
                    "cmd": {
                            "windows": ["cint.exe"]},
                    "cwd": "$file_path",
                    "syntax": "Packages/C++/C++.tmLanguage"
                    }
                }
            ]   
        }]
    }
]

CINT.exe needs to be in your system's PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment