<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[New Plugin] LuaScript]]></title><description><![CDATA[<p dir="auto">This is a first test release of LuaScript. Yes, another scripting language extension plugin…</p>
<p dir="auto">LuaScript  provides control over all of Scintilla’s features and options using the light-weight, fully-functional programming language, Lua. The plugin is a single DLL, requires no special permissions, and uses &lt;50Kb RAM. It has an interactive console and also a startup script to run to configure Notepad++ every time it is started.</p>
<p dir="auto"><img src="https://camo.nodebb.org/d068d5bb1b2be5badcbf2db839a3be21845da0c8?url=http%3A%2F%2Fi.imgur.com%2F54ovn5C.png" alt="Screen Shot" class=" img-fluid img-markdown" /></p>
<p dir="auto">You can do things like tweak Scintilla since Notepad++ does not expose all the options, like using prettier bookmark icons:</p>
<pre><code>-- Notepad++ uses 24 internally
editor:MarkerDefine(24, SC_MARK_BOOKMARK)
editor.MarkerFore[24] = 0xFF0000
editor.MarkerBack[24] = 0xFF0000
</code></pre>
<p dir="auto">Or allow Notepad++ to scroll one page past the last line of text:</p>
<pre><code>editor.EndAtLastLine = false
</code></pre>
<p dir="auto">You can even use it to do find/replace:</p>
<pre><code>for m in editor:match("(image)(\\d+)(\\.(jpg|png))", SCFIND_REGEXP) do
    i = tonumber(editor.Tag[2])
    m:replace(editor.Tag[1] .. i + 1 .. editor.Tag[3])
end
</code></pre>
<p dir="auto">Plus it is really convenient for just seeing how Scintilla works.</p>
<p dir="auto">There are probably some issues but it is still a work in progress.</p>
<p dir="auto">Download <a href="https://github.com/dail8859/LuaScript/releases" rel="nofollow ugc">here</a> - Just download the zip and extract the DLL to your plugin directory.<br />
Check out the <a href="https://github.com/dail8859/LuaScript/blob/master/README.md" rel="nofollow ugc">ReadMe</a><br />
Source is hosted on <a href="https://github.com/dail8859/LuaScript" rel="nofollow ugc">Github</a></p>
<p dir="auto">Suggestions/comments/questions welcome.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11234/new-plugin-luascript</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:14:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11234.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Feb 2016 15:08:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sun, 04 Feb 2024 00:37:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximiliankohler" aria-label="Profile: MaximilianKohler">@<bdi>MaximilianKohler</bdi></a> Do a simple test to debug.</p>
<p dir="auto">startup.lua:</p>
<pre><code>-- Startup script
-- Changes will take effect once Notepad++ is restarted

print('Hello World')
</code></pre>
<p dir="auto">Console:</p>
<pre><code>Hello World
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
</code></pre>
<p dir="auto">With the PortableApps distribution of Notepad++, If you install a plugin and Notepad++ restarts then the environmental variables related to PortableApps  are not set from that instance of Notepad++. You need to close that instance and start a new instance using <code>Notepad++Portable.exe</code> to have those environmental variables set. You can check by running CMD and use the command <code>set</code> from Notepad++ to see all the extra environmental variables that are added or values being modified.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92610</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Sun, 04 Feb 2024 00:37:07 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 03 Feb 2024 14:51:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximiliankohler" aria-label="Profile: MaximilianKohler">@<bdi>MaximilianKohler</bdi></a> said in <a href="/post/92599">[New Plugin] LuaScript</a>:</p>
<blockquote>
<p dir="auto">with the PortableApps dot com version</p>
</blockquote>
<p dir="auto">This isn’t a supported version.<br />
Best thing to do is not use it.<br />
Notepad++ itself distributes a “portable” version – use that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92600</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92600</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 03 Feb 2024 14:51:59 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 03 Feb 2024 14:46:46 GMT]]></title><description><![CDATA[<p dir="auto">The startup script doesn’t seem to work with the PortableApps dot com version. I was trying to use this:</p>
<p dir="auto">community.notepad-plus-plus dot org/topic/11233/disable-ascii-control-characters-shortcuts/5</p>
<p dir="auto">I’ll post to the portableapps forum and see what they say:<br />
portableapps dot com/node/70143</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92599</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92599</guid><dc:creator><![CDATA[MaximilianKohler]]></dc:creator><pubDate>Sat, 03 Feb 2024 14:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Wed, 06 Apr 2016 21:17:52 GMT]]></title><description><![CDATA[<p dir="auto">A new version has been release. <a href="https://github.com/dail8859/LuaScript/releases" rel="nofollow ugc">v0.4.0</a></p>
<p dir="auto">Now with API documentation. <a href="https://dail8859.github.io/LuaScript/" rel="nofollow ugc">https://dail8859.github.io/LuaScript/</a></p>
<p dir="auto">This release includes bug fixes, GUI enhancements, and a large portion of the Notepad++ message and notifications are available.</p>
<p dir="auto">As always, comments/questions are welcome.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/15191</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/15191</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Wed, 06 Apr 2016 21:17:52 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 27 Feb 2016 17:15:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello dail,</p>
<p dir="auto">Thanks for replying.</p>
<p dir="auto">Yes, I was looking for ‘editor:LineCopy()’.<br />
Not finding it in the documentation page, I assumed it was not available.</p>
<p dir="auto">I’ve opened two issues on GitHub.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14337</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14337</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Sat, 27 Feb 2016 17:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 27 Feb 2016 11:02:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Dail</strong>,</p>
<p dir="auto">Thanks for your <strong>quick</strong> reply ! But, even before opening my laptop and seeing your post, this morning ( in France ! ), I had understood the differences between the <strong>two</strong> behaviours. Indeed, although I ran the <strong>copy</strong> and <strong>cut</strong> commands, with a <strong>previous</strong> selection, I did <strong>not</strong> see the differences, at first sight !</p>
<p dir="auto">Sorry. It would have saved you to reply me about this matter, as you, certainly, need time to develop your <strong>Lua</strong> plugin :-(</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
<p dir="auto">BTW, it’s a chance that you give the <strong>Visual Studio</strong>’s method, about <strong>copy/cut</strong> text ! Because, the <strong>two</strong> commands <strong><code>editor:LineCopy()</code></strong> and <strong><code>editor:LineDelete()</code></strong> are <strong>absent</strong>, from your <strong>Lua Script</strong> documentation, at the address below :</p>
<p dir="auto"><a href="https://github.com/dail8859/LuaScript/blob/master/doc/editor.md" rel="nofollow ugc">https://github.com/dail8859/LuaScript/blob/master/doc/editor.md</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/14333</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14333</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 27 Feb 2016 11:02:19 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 27 Feb 2016 03:35:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yaron" aria-label="Profile: Yaron">@<bdi>Yaron</bdi></a></p>
<blockquote>
<p dir="auto">I actually meant an option to copy the entire line even if part of it is selected.</p>
</blockquote>
<p dir="auto">If I understand what you are wanting you can simply use <code>editor:LineCopy()</code></p>
<blockquote>
<p dir="auto">A context-menu in the Console Output field.</p>
</blockquote>
<p dir="auto">Would be simple to add. If you want you can open a feature request on Github and we can discuss it more there.</p>
<blockquote>
<p dir="auto">An option to change text direction (LTR/RTL) in the Console Input field.</p>
</blockquote>
<p dir="auto">One of the change I made from PythonScript was replace the input field with a Scintilla control. So I’m not sure how easy this would be to change the text direction.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14332</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14332</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Sat, 27 Feb 2016 03:35:07 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 27 Feb 2016 02:10:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a>,<br />
Thank you for your contribution (and generosity…).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>,<br />
Thank you for your contribution. Nice to <strong>see</strong> an old friend. :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a>,<br />
Thank you for further developing and improving this important plugin. Great work.</p>
<p dir="auto">And thanks also for referring to my Copy Line request. Really nice.</p>
<blockquote>
<p dir="auto">It would be nice to have a function coping the current line regardless of any selection (like editor.lineCopy() in PythonScript).</p>
</blockquote>
<p dir="auto">I actually meant an option to copy the entire line even if part of it is selected.<br />
In a future version. :)</p>
<p dir="auto">And, with your permission, two more requests:</p>
<ol>
<li>A context-menu in the Console Output field.</li>
<li>An option to change text direction (LTR/RTL) in the Console Input field.<br />
(PythonScript uses the System Edit-Context-Menu which includes this functionality).</li>
</ol>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14331</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14331</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Sat, 27 Feb 2016 02:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 27 Feb 2016 00:15:04 GMT]]></title><description><![CDATA[<p dir="auto">With the two shortcuts I’ve posted they work to enhance the normal copy and cut functionality. If there is a selection they both work as normal copy/cut. If there is no selection then they behave by copying or cutting the line. However, <code>SCI_LINECUT</code> and <code>SCI_LINECOPY</code> doesn’t pay any attention the the selection.</p>
<p dir="auto">Secondly, to quote the documentation about <code>SCI_COPYALLOWLINE</code></p>
<blockquote>
<p dir="auto">On Windows, an extra “MSDEVLineSelect” marker is added to the clipboard which is then used in <code>SCI_PASTE</code> to paste the whole line before the current line.</p>
</blockquote>
<p dir="auto">So the difference is when it is pasted it replaces the entire line instead of pasting the line directly at the cursor’s position.</p>
<p dir="auto">Similar effects can be achieved both ways but users that are use to Visual Studios will definitely notice a difference.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14330</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14330</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Sat, 27 Feb 2016 00:15:04 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 23:56:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Dail</strong>,</p>
<p dir="auto">I, first, based on your two <strong>comments</strong>, in your <strong>Lua</strong> script, below :</p>
<blockquote>
<p dir="auto">– Mimic Visual Studio’s “Ctrl+C” that copies the entire line if nothing is selected</p>
</blockquote>
<blockquote>
<p dir="auto">– Mimic Visual Studio’s “Ctrl+X” that cuts the line if nothing is selected</p>
</blockquote>
<p dir="auto">As you said that <strong><code>SCI_LINECUT</code></strong> and <strong><code>SCI_LINECOPY</code></strong> don’t have exactly the same behaviour :</p>
<ul>
<li>
<p dir="auto">I downloaded your last <strong>0.2.0</strong> version of your <strong>Lua</strong> plugin</p>
</li>
<li>
<p dir="auto">After some searches, in your <strong>Lua</strong> documentation, I understood that the Notepad object <strong>npp.AddShortcut</strong> must be called, on <strong>startup</strong> only !</p>
</li>
<li>
<p dir="auto">So, I put your <strong>lua</strong> script text, inside the <strong>StartUp</strong> script and save it. Then, I closed and restarted my <strong>6.8.8</strong> N++.</p>
</li>
</ul>
<p dir="auto">=&gt; As expected, the <strong>new</strong> commands <strong>CTRL + C</strong> and <strong>CTRL + X</strong> do the job, nicely, even if <strong>no selection</strong> exists !</p>
<p dir="auto">Unfortunately, I couldn <strong>not</strong> see any difference with the <strong>Scintilla</strong> commands <strong><code>SCI_LINECUT</code></strong> and <strong><code>SCI_LINECOPY</code></strong> ( that I kept, with the <strong>ALT + CTRL + X/C</strong> shortcuts ), even after <strong>pasting</strong> the clipboard contents, in an <strong>other</strong> document !</p>
<p dir="auto">What I’m missing ?</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14329</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14329</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 Feb 2016 23:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 22:58:06 GMT]]></title><description><![CDATA[<p dir="auto">Just using <code>SCI_LINECUT</code> and <code>SCI_LINECOPY</code> doesn’t quite match Visual Studio’s behavior. ;)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14326</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14326</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 26 Feb 2016 22:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 22:51:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>All</strong>,</p>
<p dir="auto">A simple method to <strong>mimic</strong> the <em>Visual Studio</em>’s shortcuts ( <strong>CTRL +C/X</strong> ) is to change the <strong>default</strong> shortcuts of the lines <strong>91</strong> and <strong>92</strong>, of the <strong>Scintilla commands</strong> tab, in the <strong>Shortcut Mapper</strong> !</p>
<p dir="auto">Just set the shortcut <strong>ALT + CTRL + X</strong>, in line <strong>91</strong> and the shortcut <strong>ALT + CTRL + C</strong>, in line <strong>92</strong></p>
<p dir="auto">Of course, I need to use the additional <strong>ALT</strong> key. So, it’s not as <strong>neat</strong> as the <strong>Dail</strong>’s <strong>Lua</strong> script :-) But this may help, anyway !</p>
<p dir="auto">REMARK : If I remember correctly, I think that :</p>
<ul>
<li>
<p dir="auto">The <strong>ALT + CTRL + C</strong> shortcut is used, by <strong>default</strong>, to open the <strong>Color Picker</strong> plugin</p>
</li>
<li>
<p dir="auto">The <strong>ALT + CTRL + X</strong> shortcut performs, by <strong>default</strong>, the option <strong>Translate CamelCase/underscore_case</strong> of the <strong>Translate</strong> plugin</p>
</li>
</ul>
<p dir="auto">So, be aware of that, if you use the <strong>Color Picker</strong> and/or <strong>Translate</strong> plugins !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14325</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14325</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 Feb 2016 22:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 19:45:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yaron" aria-label="Profile: Yaron">@<bdi>Yaron</bdi></a></p>
<p dir="auto">In case you are curious, this is how you’d get Visual Studio-like copy and paste functionality:</p>
<pre><code>-- Mimic Visual Studio's "Ctrl+C" that copies the entire line if nothing is selected
npp.AddShortcut("Copy Allow Line", "Ctrl+C", function()
    editor:CopyAllowLine()
end)

-- Mimic Visual Studio's "Ctrl+X" that cuts the line if nothing is selected
npp.AddShortcut("Cut Allow Line", "Ctrl+X", function()
    if editor.SelectionEmpty then
        editor:CopyAllowLine()
        editor:LineDelete()
    else
        editor:Cut()
    end
end)
</code></pre>
<p dir="auto">Also shortcuts show up in the plugin’s main menu so in theory you can assign them to N++'s context menu.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14321</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14321</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 26 Feb 2016 19:45:10 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 02:52:13 GMT]]></title><description><![CDATA[<p dir="auto">To be honest, I just read about the possibility of having userdata exposing metable a few days ago. ;-)<br />
Seems to be a new feature in lua 5.3 - I will try to get more details about it and if I feel I understood enough<br />
I might open a feature request ;-)</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14310</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14310</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 26 Feb 2016 02:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 02:44:50 GMT]]></title><description><![CDATA[<p dir="auto">Alot of the internal code came directly from SciTE. Mainly because I had no idea what I was doing (and honestly still don’t understand alot of it) ;)</p>
<p dir="auto">Since the editor object has &gt;400 methods/properties (not including getters <em>and</em> setters) there isn’t a Lua table that holds all this kind of information. Methods and properties are looked up as they are used, which helps reduce memory, etc especially since only a hand full of them are probably going to be used on a regular basis. That being said I’m not opposed to exposing some way to get this data. I’m certainly open to suggestions and use-cases.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14309</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 26 Feb 2016 02:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 02:03:56 GMT]]></title><description><![CDATA[<p dir="auto">In python script you could do</p>
<pre><code>dir(editor)
</code></pre>
<p dir="auto">to get the list of editor functions.<br />
With lua you could use getmetatable(editor) to get the same<br />
but editor must have a metatable of course.</p>
<p dir="auto">My idea behind is to use that kind of reflection to create automated test cases and<br />
easily see if there are new functions. Another idea might be to enhance npp with<br />
lua script for a dynamic intellisense and debugging functionality.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14308</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14308</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 26 Feb 2016 02:03:56 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 02:08:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a></p>
<blockquote>
<p dir="auto">You asked for ;-)</p>
</blockquote>
<p dir="auto">Yep! Alot of this has been driven by my specific needs so the development can be kind of narrow. So it is always good to hear others’ ideas!</p>
<blockquote>
<p dir="auto">make it theme aware</p>
</blockquote>
<p dir="auto">Notepad++ doesn’t expose near enough API to make this possible without very ugly hacks. I tried a few hacks without much luck. However, there is a way partial way around this. There is a <code>console</code> object that you can use that is just like the <code>editor</code> object but it controls (no surprise) the console. In your startup script you can manually configure the styles for your theme doing something like this for each style Lua uses:</p>
<pre><code>console.StyleFore[SCE_LUA_COMMENT] = 0x272822
</code></pre>
<p dir="auto">This is not dynamic in any way, but if you are desperate you can hard-code alot of values.</p>
<blockquote>
<p dir="auto">make userdata visible so that reflection can be used to execute code</p>
</blockquote>
<p dir="auto">Care to elaborate a bit?</p>
<blockquote>
<p dir="auto">possibility to clear console</p>
</blockquote>
<p dir="auto">Good idea. Until then you can use this code:</p>
<pre><code>function clear()
	console.ReadOnly = false
	console:ClearAll()
	console.ReadOnly = true
end
</code></pre>
<p dir="auto">But agree a more user-friendly and intuitive option should also be added.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14307</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14307</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 26 Feb 2016 02:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 01:23:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a></p>
<blockquote>
<p dir="auto">Comments/questions/suggestions are welcome.</p>
</blockquote>
<p dir="auto">You asked for ;-)</p>
<ul>
<li>make it theme aware</li>
<li>make userdata visible so that reflection can be used to execute code</li>
<li>possibility to clear console</li>
</ul>
<p dir="auto">BUT, regardless of my whises - GOOD JOB</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14305</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14305</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 26 Feb 2016 01:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 26 Feb 2016 00:54:48 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/dail8859/LuaScript/releases/tag/v0.2.0" rel="nofollow ugc">v0.2.0</a> has been released! Comments/questions/suggestions are welcome.</p>
<p dir="auto">Major updates include:</p>
<ul>
<li>Upgraded Lua to 5.3</li>
<li>Ability to assign shortcut keys to Lua functions</li>
<li>Register <a href="https://github.com/dail8859/LuaScript/blob/4e7712a98615bcda448f499757a461959230b0f6/doc/events.md" rel="nofollow ugc">callback</a> functions for several events</li>
</ul>
<p dir="auto">For example many editors support finding the next match and also selecting it so that multiple instances can be edited at the same time.  Placing this code in the startup script adds that functionality to a shortcut.</p>
<pre><code>function SelectionAddNext()
	-- From SciTEBase.cxx
	local flags = 0 -- can use SCFIND_MATCHCASE
	if not editor.SelectionEmpty and editor:IsRangeWord(editor.SelectionStart, editor.SelectionEnd) then
		flags = flags | SCFIND_WHOLEWORD
	end
	editor:SetTargetRange(0, editor.TextLength)
	editor.SearchFlags = flags
	
	-- From Editor.cxx
	if editor.SelectionEmpty or not editor.MultipleSelection then
		local startWord = editor:WordStartPosition(editor.CurrentPos, true)
		local endWord = editor:WordEndPosition(startWord, true)
		editor:SetSelection(startWord, endWord)
	else
		local i = editor.MainSelection
		local s = editor:textrange(editor.SelectionNStart[i], editor.SelectionNEnd[i])
		local searchRanges = {{editor.SelectionNEnd[i], editor.TargetEnd}, {editor.TargetStart, editor.SelectionNStart[i]}}
		for _, range in pairs(searchRanges) do
			editor:SetTargetRange(range[1], range[2])
			if editor:SearchInTarget(s) ~= -1 then
				editor:AddSelection(editor.TargetStart, editor.TargetEnd)
				editor:ScrollRange(editor.TargetStart, editor.TargetEnd)
				break
			end
		end
	end
end

npp.AddShortcut("Selection Add Next", "Ctrl+Shift+D", SelectionAddNext)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/14301</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14301</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 26 Feb 2016 00:54:48 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Wed, 10 Feb 2016 00:00:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ethan-piliavin" aria-label="Profile: Ethan-Piliavin">@<bdi>Ethan-Piliavin</bdi></a> said:</p>
<blockquote>
<p dir="auto">Can you provide some explanation of how to store and access scripts? What folder do they go into? Is it possible to include other (external) lua libraries from ?</p>
</blockquote>
<p dir="auto">Since this isn’t possible yet I haven’t really given it much thought at all. My knowledge is very lacking of the Win32 API to create menus dynamically, etc. More than likely I’m going to re-use code (like any good software engineer should do) from the PythonScript plugin. So most likely you will see a lot of similarities. That kind of capability might be a little while in the future since for now I’m focusing on just getting the Lua API working as I want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13895</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Wed, 10 Feb 2016 00:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Tue, 09 Feb 2016 23:22:46 GMT]]></title><description><![CDATA[<p dir="auto">Wow! Very exciting. I am looking forward to testing this as a lightweight replacement for PythonScript.</p>
<p dir="auto">I agree that we should have an easy/smart way to access the scripts from the menu/toolbar/context.</p>
<p dir="auto">Can you provide some explanation of how to store and access scripts? What folder do they go into? Is it possible to include other (external) lua libraries from ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13892</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13892</guid><dc:creator><![CDATA[Ethan Piliavin]]></dc:creator><pubDate>Tue, 09 Feb 2016 23:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Sat, 06 Feb 2016 15:19:44 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/dail8859/LuaScript/releases/tag/v0.1.1" rel="nofollow ugc">Version 0.1.1</a> has been released to fix several important bugs.</p>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a> for the testing!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13859</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13859</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Sat, 06 Feb 2016 15:19:44 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 05 Feb 2016 20:14:35 GMT]]></title><description><![CDATA[<p dir="auto">I’m sure Dave would approve the borrowing. :)<br />
That would be great.</p>
<p dir="auto">When you start working on displaying custom scripts in the menu, please consider the following point:<br />
As far as I know, you can’t assign a nested plugin command to NPP context-menu.<br />
So it would be nice to have an option to display scripts in the LuaScript’s main menu.</p>
<p dir="auto">Thanks again and best of luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13841</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13841</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Fri, 05 Feb 2016 20:14:35 GMT</pubDate></item><item><title><![CDATA[Reply to [New Plugin] LuaScript on Fri, 05 Feb 2016 17:21:14 GMT]]></title><description><![CDATA[<p dir="auto">I agree the PythonScript plugin is very useful. I plan on <s>stealing</s> borrowing lots of code from that :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13822</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13822</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 05 Feb 2016 17:21:14 GMT</pubDate></item></channel></rss>