Someone one the requested tracker of "notepad++ plugins" suggested an "In-line calculator". I'm not sure if someone else has done this already, but i thought it would be very easy to realize using the boost::spirit lib and so within the last hour i created this:
i hope it works…
This may be something similar to what you mean:
Not fully functional yet…
An exception occured. Notepad++ cannot recover and must be shut down.
The exception details are as follows:
Type: Access violation
Exception address: 0x02B6133C
Granted, this is with an intermediate build of 5.5, but this doesn't look too good…
was it caused by NppCalc or anmXNpp?
if it was the second, do you have more info to provide (es. which was the expression that caused the error)?
Thanks in advance,
Nope, it was NppCalc, by simply clocking its Alt+Q submenu entry.
k in this case no bugfixes needed. i will just use anmXNpp in future, thx for the tip.
I can't seem to get NppCalc to work.
I've tried with ActiveCalc on and off
I've tried the simple expression
I just get a new line
In my configuration ( Npp++ Last Version 6.5.1 ), on my Win XP SP3 laptop, the plugin NppCalc works like a charm :-) Many thanks, again, to the author RinOS !
My main program Notepad++.exe is located in the folder My Documents\_651
The 3 files NppCalc.dll, HelpNppCalcEn.txt and HelpNppCalcRu.txt are located in the folder :
NppCalc.dll Last Modified 27/02/2013 and 930816 bytes
HelpNppCalcEn.txt Last Modified 27/02/13 and 11383 bytes
HelpNppCalcRu.txt Last Modified 27/02/13 and 11439 bytes
To activate this plugin, I simply use Menu Plugins\NppCalc\Active Calc or the shortcut CTRL + SHIFT + C
May be, the default shortcut of NppCalc is, now, used by an OTHER plugin , in your configuration ! So, it's better to choose the Menu way :)
One Example :
If I write, in a new tab, n:=7 and hit the Enter key, nothing is displayed but the value 7 is attributed to the variable n
Then, if I write n and hit the Enter key, it answers the value 7, as expected, on the next line
And if I write 2^5/n and hit the Enter key, it answers the value 1.64067071201528 as it's equivalent to 2^(5/n)
Finally, if I write (2^5)/n and hit the Enter key, it answers the result 4.57142857142857
If necessary, download again this plugin at the address below :
Sorry, but it seems that I wrote this post twice !
I have tried that method THeventot but nothing happens in the file. I am on windows 8.1 and there was some a message saying not able to validate integrity of file when re/installing nppcalc from plug in manager.
I have since been able to run it. Not sure if I remember correctly the process to get it to work but it has been fairly useful and I would love to be able to give feedback to author or anyone interested in furthering it's development. It is quick easy and right there in the editor vs. matlab which has to be loaded and then file converted... not really graphing anything too often so this would be a quickndirty method for most of my needs.
NB Works fine but ONLY from Editor1 !