Go Down

Topic: Using Arduino IDE with Notepad++, my approach (Read 5035 times) previous topic - next topic

ijm51000

Hi,

Just thought I would share my method of using an external editor with the Arduino IDE, I am sure many of you old hands have your own method and I acknowledge this is unlikely to be new to many here.  However for those new to Arduino and are looking for a middle ground, this may be useful.

Most of the hard work was done by user Riva on these forums

This will only work on Windows, but there are many cross platform editors available that have much the same options that could probably be adapted sublime text 2 and if someone had the know how Komodo-edit with a user defined language would be a great, hint, hint.

To avoid a long post I have attached my method as a text file.

Best regards

Ian

1nme

Thank you for the input!  I would like to try this method but I'm lost at steps 15 and 16 from your text file.  Are the changes being made while in the "run" menu?  Is the arduino executable being renamed?

codlink

Just went through your tutorial and the only problem I am having is after saving a sketch in NPP, and select run>Arduino, it doesn't import anything into the Arduino IDE.
//LiNK

Blueglide

First ijm51000 - Thanks!  I'm the guy you targeted.  New to Areuino and tools pertinent to it.  I just made up my mind to try NPP as a substitute editor to the Arduino IDE two days ago.   

I had a problem similar to the two postings above related to steps 15 & 16, and I'll think the fix will work for them also.  You have to use quotes. 

I re-wrote your step 16 in my records as:

16 add the following to the end of the line $(FULL_CURRENT_PATH), so it should look something like this (Don't forget the QUOTES"!) "C:\arduino-1.0.4\arduino.exe" "$(FULL_CURRENT_PATH)"

Another hiccup I had was to enter .ino in step 3.  But I should not have entered the leading ".", just ino.  Your instructions were correct, my error! 


NPP is working great now.  Thanks for the posting!


Blueglide

#4
Apr 21, 2013, 12:32 pm Last Edit: Apr 21, 2013, 12:36 pm by Blueglide Reason: 1
1nme - No the Arduino executable is not being renamed.  What you are doing is setting up a command string to be executed later when you have finished your editing and then want to try to compile the program.  In your NPP session, after saving your recent modifications you would select Run>ArduinoIDE, the Arduino IDE would start up with the ino file you have been editing loaded.  You hit CTRL-R and hopefully the compile operation is successful!  

To make my installation work properly, I had to add quotes like this:
"C:\arduino-1.0.4\arduino.exe" "$(FULL_CURRENT_PATH)"

The first string enclosed by quotes is of course the full path reference to your Arduino IDE.  So when executed, it causes the Arduino IDE to run.  The second string enclosed by quotes is a variable loaded by NPP and contains the full path to the .ino file you are editing. On my system a typical value of $(FULL_CURRENT_PATH) might be: "D:\Arduino\Sketches\Blink\Blink.ino".

You can get more information in NPP on use of the Run menu item by selecting ?>Help Contents>Command.

Good Luck!

codlink

//LiNK

Go Up