<?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[Insertion of LineNumber]]></title><description><![CDATA[<p dir="auto">Hello all.<br />
I just discover NP++, and I think it’s the better tool I’ve ever seen.<br />
I have just a question : Is it possible to make a macro for example to insert in a line the number of the line itself ?<br />
To obtain this sort of thing :<br />
<strong>logit (“my debug : line #5447 - zz : '” + zz + “'”);</strong><br />
Many thanks for your answers.</p>
<p dir="auto">Cigalou</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11890/insertion-of-linenumber</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 06:20:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11890.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jun 2016 07:33:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Insertion of LineNumber on Wed, 01 Jun 2016 12:15:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philippe-giraud" aria-label="Profile: Philippe-Giraud">@<bdi>Philippe-Giraud</bdi></a>   Not sure exactly what you want to do.</p>
<p dir="auto">If you just want to see line numbers, then use the menus: <em>Settings–&gt;Preferences–&gt;Editing</em> and check the <em>Display line number</em> checkbox.</p>
<p dir="auto">If you want to actually insert line numbers into a file, then you can do it using <em>Edit–&gt;Column Editor…</em>.  Begin by moving the cursor to the very beginning of the file, then press Alt-C (or use the menu entry <em>Edit–&gt;Column Editor…</em>), select the <em>Number to Insert</em> button, then fill in the options as you desire. When you press <em>OK</em>, the numbers will be inserted into the file as text.  That is, this:</p>
<pre><code>===============================================================================
TOPIC: HOTKEYS (INCLUDING MOUSE-RELATED):
===============================================================================

Tagging: (needs TagsJump)

  Find Definition        -- &lt;Alt&gt;+&lt;Down Arrow&gt;
  Return from Definition -- &lt;Alt&gt;+&lt;Up Arrow&gt;
  Generate tags file     -- &lt;Alt&gt;+t
</code></pre>
<p dir="auto">will change to something like this:</p>
<pre><code>01===============================================================================
02TOPIC: HOTKEYS (INCLUDING MOUSE-RELATED):
03===============================================================================
04
05Tagging: (needs TagsJump)
06
07  Find Definition        -- &lt;Alt&gt;+&lt;Down Arrow&gt;
08  Return from Definition -- &lt;Alt&gt;+&lt;Up Arrow&gt;
09  Generate tags file     -- &lt;Alt&gt;+t
</code></pre>
<p dir="auto">Regards,<br />
Jim</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16170</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16170</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Wed, 01 Jun 2016 12:15:30 GMT</pubDate></item></channel></rss>