Can Notepad ++ run a Ruby (or other) script directly from the text in the active tab?

I know that I can run a Ruby script on my active tab with the command

cmd /K ruby "$(FULL_CURRENT_PATH)"

However, I would like to do with Notepad ++ on my Windows system what I do regularly in BBEdit on my Mac: open a text file and then call the Ruby script from the menu and have this script act in the text in the active window without the actual input of the file name. Is it possible?

+5
source share
2 answers

Ruby script Notepad ++, NppExec, . Notepad ++ F6, Plugins > NppExec > Execute. " " :

ruby "$(FULL_CURRENT_PATH)"

.

+9

$(FULL_CURRENT_PATH) - , .

, ,

ruby /path/to/your/script.rb "$(FULL_CURRENT_PATH)"

, , Ctrl+F6 , .

+2

All Articles