Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I need an editor where I can edit my code client side, then highlight part of it and run the highlighted code on the connected server.

An Example of this would be SQL management studio, but I need it for shell scripts and other languages.

UltraEdit does something close with a copy-paste mechanic, are there any others?


migration rejected from stackoverflow.com Dec 19 '14 at 20:08

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by amon, MichaelT, Bart van Ingen Schenau, Dan Pichelman, GlenH7 Dec 19 '14 at 20:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – amon, MichaelT, Bart van Ingen Schenau, Dan Pichelman, GlenH7
If this question can be reworded to fit the rules in the help center, please edit the question.

Since this question is about editors, and not programming, I think it would do better on Programmer's Stack Exchange –  rlb.usa Jun 29 '11 at 17:20
Sure. Just run a shell [in Emacs] ... what, your editor doesn't support shells? :( –  pst Jun 29 '11 at 17:26

2 Answers 2

Leave the file on the remote machine where you are running the code. Then use vim to edit a remote file via SSH.

Note: Just in case you haven't set up SSH access using keys, do so, or you'll get annoyed quicky.


Write a script around your editor and your server using Obby protocol :

The Obby protocol consists of commands sent between a client and a server. There is one command per line, possibly with a colon and some parameters. Note that integral parameters are sent in hexadecimal representation. Newline characters, colon characters and backspace characters are escaped to \n, \d or \b respectively.

Or, use Emacs.