<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML lang="en">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<link href="style.css" rel="stylesheet" type="text/css">
<title>4.6.10. Running Lua</title>
<script src="show_matches.js" type="text/javascript"></script>
</HEAD>
<BODY>
<h3>4.6.10. Running Lua</h3>

<p>Depending on what exactly we want to achieve, here are the two NppExec's scripts that can be used to run Lua:</p>

<blockquote>
  <pre>// Lua in NppExec's Console
set local Lua = C:\Lua\bin\lua.exe // &lt;-- specify your path to Lua here!
npp_save // saves the current .lua file
&quot;$(Lua)&quot; &quot;$(FULL_CURRENT_PATH)&quot; // runs it</pre>
</blockquote>

<p>and</p>

<blockquote>
  <pre>// Lua in a separate console window
set local Lua = C:\Lua\bin\lua.exe // &lt;-- specify your path to Lua here!
npp_save // saves the current .lua file
npp_run cmd /c &quot;&quot;$(Lua)&quot; &quot;$(FULL_CURRENT_PATH)&quot; &amp;&amp; pause&quot; // runs it</pre>
</blockquote>

<blockquote>
  <pre> </pre>
</blockquote>

</BODY>
</HTML>
