Sidebar

Home



Knowledge Base


Guides & Tutorials

Projects

Samples

  G-Code
   Square
   Arcs
   Mickey
   Arrow
   Bear
   Ball In Cage

  Dialogs
   Square
   Rounded Square
   Guess The Number

  O-Words
   Polygon

  Subprocedures
   Lissajous

   Lissajous (sub..endsub..call)
   Lissajous (call..sub..endsub)

   Lissajous (exec..O..M99)

   Lissajous (G65)
   Lissajous (G65 with GOTO)

   Palindrome
   PrimeFactors
   Fibonacci

  Splines
   Butterfly

  G06
   arrchr

  Dynamic
   Clock
   DateTime

  Notepad++ Plugin
   Examples


kb:samples:npp

Notepad++ Plugin

I use Notepad++ a lot. It is the best txt editor for me. I write almost all my scripts/g-codes in there.

As an experimentation I created plugin that implements TNG expression engine as Npp plugin.
It simply evaluates selected text as expression and stores result to clipboard. I no longer need calculator.



Almost all relevant Expression functions and operators can be used in this plugin.

Take a look at examples to see the power of this plugin.

You can add it to context menu. Edit file “%AppData%/Notepad++/contextMenu.xml” and add this:

<Item FolderName="PlanetCNC" PluginEntryName="PlanetCNC Tools" PluginCommandItemName="Expression" ItemNameAs="Calculate Expression"/>
<Item id="0"/>

You can also add shortcut to F12 (like I do). Edit file “%AppData%/Notepad++/shortcuts.xml” and add this:

<PluginCommands>
  <PluginCommand moduleName="PlanetCNCNpp64.dll" internalID="0" Ctrl="no" Alt="no" Shift="no" Key="123" />
</PluginCommands>

See also

kb/samples/npp.txt · Last modified: 2024/05/30 23:27 by andrej

Page Tools