<?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[Lua code tab  &#x2F;  Табуляция lua кода]]></title><description><![CDATA[<p dir="auto">Please tell me the plugin for tab lua code, not as I can not find (x64)<br />
((To level a smooth, ladder)</p>
<p dir="auto">Подскажите пожалуйста плагин для табуляции кода lua, не как не могу найти (x64)<br />
(Что бы выровнять ровненько,лесенкой)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15830/lua-code-tab-табуляция-lua-кода</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 10:52:09 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15830.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 May 2018 19:32:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 21:29:17 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you want to take a look at<br />
<a href="https://sourceforge.net/projects/universalindent/files/uigui/UniversalIndentGUI_1.0.2/UniversalIndentGUI_1.0.2_NotepadPPplugin.zip/download" rel="nofollow ugc">https://sourceforge.net/projects/universalindent/files/uigui/UniversalIndentGUI_1.0.2/UniversalIndentGUI_1.0.2_NotepadPPplugin.zip/download</a><br />
or<br />
<a href="https://code.google.com/archive/p/kereds-notepad-plus-plus-plugins/downloads" rel="nofollow ugc">https://code.google.com/archive/p/kereds-notepad-plus-plus-plugins/downloads</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/32545</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32545</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Tue, 29 May 2018 21:29:17 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 15:16:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/podstav-podstav" aria-label="Profile: Podstav-Podstav">@<bdi>Podstav-Podstav</bdi></a></p>
<p dir="auto">Install LuaScript plugin via Plugin Manager<br />
Edit startup file with something like this</p>
<pre><code>local decreaseIndentPattern = &lsqb;&lsqb;^\s*(elseif|else|end|\})\s*$&rsqb;&rsqb;
local increaseIndentPattern = &lsqb;&lsqb;^\s*(else|elseif|for|(local\s+)?function|if|repeat|until|while)\b((?!end).)*$|\{\s*$&rsqb;&rsqb;

indent_size = 4

function format_code()
    editor:BeginUndoAction()

    current_indent = 0
    next_indent = 0

    for i=0,editor.LineCount do
        current_indent = next_indent
        start_pos = editor:PositionFromLine(i)
        end_pos = editor.LineEndPosition[i]
        if editor:findtext(increaseIndentPattern, SCFIND_REGEXP, start_pos, end_pos) then
            next_indent = next_indent + indent_size
        end
        if editor:findtext(decreaseIndentPattern, SCFIND_REGEXP, start_pos, end_pos) then
            current_indent = current_indent - indent_size
            next_indent = next_indent - indent_size
        end
        print(current_indent)
        editor:InsertText(start_pos, string.rep(" ", current_indent))
    end
    editor:EndUndoAction()
end


npp.AddShortcut("Source Code Formatter", "Ctrl+D", function()
  format_code()
end)
</code></pre>
<p dir="auto">More example are seen <a href="https://github.com/dail8859/LuaScript/tree/master/examples" rel="nofollow ugc">here</a></p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32541</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32541</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 29 May 2018 15:16:25 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 12:23:29 GMT]]></title><description><![CDATA[<p dir="auto">Yes, in the atom editor this plugin is called beautifier ,and in notepad++ I can not find</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32538</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32538</guid><dc:creator><![CDATA[Podstav Podstav]]></dc:creator><pubDate>Tue, 29 May 2018 12:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 12:04:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/podstav-podstav" aria-label="Profile: Podstav-Podstav">@<bdi>Podstav-Podstav</bdi></a></p>
<p dir="auto">It appears you are seeking a “Lua code beautifier”?  If so, Notepad++ cannot really help you with that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32536</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32536</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Tue, 29 May 2018 12:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 10:57:49 GMT]]></title><description><![CDATA[<p dir="auto">Example:</p>
<ul>
<li>need to so</li>
</ul>
<hr />
<p dir="auto">local t = 0<br />
for i = 1,10 do</p>
<p dir="auto">____if  t == 5 then<br />
________print(t)<br />
____else<br />
_________print(t/t)<br />
____end<br />
____t = t + 1<br />
end</p>
<p dir="auto">I did not know how to write the code in the message so added underscore</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32534</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32534</guid><dc:creator><![CDATA[Podstav Podstav]]></dc:creator><pubDate>Tue, 29 May 2018 10:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 10:36:50 GMT]]></title><description><![CDATA[<p dir="auto">how to align the lua code ?</p>
<p dir="auto">Example:</p>
<ul>
<li>it was so</li>
</ul>
<h2>local t = 0<br />
for i = 1,10 do<br />
if t == 5  then<br />
print(t)	<br />
else<br />
print(t/t)<br />
end<br />
t = t + 1		<br />
end</h2>
<p dir="auto">Example:</p>
<ul>
<li>need to so</li>
</ul>
<p dir="auto">local t = 0<br />
for i = 1,10 do<br />
if t == 5  then<br />
print(t)	<br />
else<br />
print(t/t)<br />
end<br />
t = t + 1		<br />
end</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32533</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32533</guid><dc:creator><![CDATA[Podstav Podstav]]></dc:creator><pubDate>Tue, 29 May 2018 10:36:50 GMT</pubDate></item><item><title><![CDATA[Reply to Lua code tab  &#x2F;  Табуляция lua кода on Tue, 29 May 2018 09:53:35 GMT]]></title><description><![CDATA[<p dir="auto">Can you clarify on what you are looking for in more detail please?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32531</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32531</guid><dc:creator><![CDATA[SalviaSage]]></dc:creator><pubDate>Tue, 29 May 2018 09:53:35 GMT</pubDate></item></channel></rss>