Reputation: 23567
How does one sent highlighted code from sublime text 2 editor to the interactive console started by going to view > show console
in sublime text 2?
Upvotes: 4
Views: 3091
Reputation: 11500
If you are on Sublime Text 2 for a Mac, then press 'command' + 'B' to build. If you are on Windows, then press 'Ctrl' + 'B'.
I hope I interpreted your question correctly. If you're trying to make an interpreter on the console, you can use 'Package Control' to install SublimeREPL (https://github.com/wuub/SublimeREPL)
Edit: Showing the key control depending on what you want (e.g. just take the selection, the line, the entire file). Screenshots are on a Windows 7 PC.
Upvotes: 9