Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way in notepad++ to use the "Run > Launch in ..." functions on unsaved files? If you do this, it just tries to open "{notepad++-Dir}\new 1", which doesn't exist of course.

I sometimes just want to see the output of some small scribbles without having to manually save them in a temp dir or something.

Any help is appreciated!

share|improve this question

2 Answers 2

It's not like I'm an expert at scripting or anything, but if it's minor edits, why don't you just save the changes, run it, and then hit ctrl+z?

share|improve this answer
    
It's not about small changes on an existing file. I write something or copy from another program, and just want to run that content. So it's not saved anywhere... And saving a temporary file just to delete it immediately is a bit cumbersome –  king_nak May 22 '13 at 10:16

This will quite simply not be possible. When you create a new document in NPP, this will only exist in your RAM and nowhere on the disk until it has been made persistent by saving. Other programs will not be able to run this since they need to load it from the disk.

share|improve this answer
    
I once had an editor (dont't remember its name) that would save the file into the temporary folder for this purpose. That would solve this problem, but is there a way to in npp to do that? –  king_nak Oct 18 '12 at 11:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.