<?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[How to get column &amp; row numbers at cursor location ?]]></title><description><![CDATA[<p dir="auto">I want to create a plugin (using C# script) to place a string starting from current cursor location to column 90 in the same line. For example, if cursor is located at (row 5, column 10), then the string will be started from (row 5, column 10) to (row 5, column 90).<br />
In a plugin, is there a way to get the column &amp; row numbers at cursor location ?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13587/how-to-get-column-row-numbers-at-cursor-location</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 01:41:47 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13587.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Apr 2017 18:07:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get column &amp; row numbers at cursor location ? on Tue, 11 Apr 2017 15:37:30 GMT]]></title><description><![CDATA[<p dir="auto">For private use you could also install the Community edition, which has no restrictions (code analyis, addins,… as far as I remember) like the express edition.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23503</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23503</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Tue, 11 Apr 2017 15:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to get column &amp; row numbers at cursor location ? on Tue, 11 Apr 2017 11:34:33 GMT]]></title><description><![CDATA[<p dir="auto">Other than ToolsVersion, the C# plugin template has also used some other vs2015 only syntax, such as “using static” in ScintillaGateway.cs.</p>
<p dir="auto">Yesterday, I’ve resolved the problem by installing vs2015 express for desktop.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23495</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23495</guid><dc:creator><![CDATA[12 Marlin]]></dc:creator><pubDate>Tue, 11 Apr 2017 11:34:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to get column &amp; row numbers at cursor location ? on Sun, 09 Apr 2017 22:04:01 GMT]]></title><description><![CDATA[<p dir="auto">C# plugin template is probably still usable also from vs2013 as typically between vs2015 and vs2013 just the  ToolsVersion differs from  ToolsVersion=“14.0” -&gt;  ToolsVersion=“12.0”  and at least the included demo is still a vs2013 project.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23454</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23454</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Sun, 09 Apr 2017 22:04:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to get column &amp; row numbers at cursor location ? on Sat, 08 Apr 2017 05:56:35 GMT]]></title><description><![CDATA[<p dir="auto">Thks for your support &amp; quick response !<br />
Yes, I’m new to notepad++. Thks for the info, I can create some simple scripts using Automation Plugin (NppScripts) now. Since I’m still using VS2013, the c# plugin template (for VS2015) cannot be used. Anyway, thks for your help !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23421</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23421</guid><dc:creator><![CDATA[12 Marlin]]></dc:creator><pubDate>Sat, 08 Apr 2017 05:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to get column &amp; row numbers at cursor location ? on Wed, 05 Apr 2017 22:11:12 GMT]]></title><description><![CDATA[<p dir="auto">I’m not sure how much you know about Scintilla (which is what Notepad++ uses internally) but hit has a <a href="http://www.scintilla.org/ScintillaDoc.html" rel="nofollow ugc">decent sized API</a> that you can do anything you need. In your case it sounds like these would be the key ones to get started with:</p>
<ul>
<li><a href="http://www.scintilla.org/ScintillaDoc.html#SCI_GETCURRENTPOS" rel="nofollow ugc">SCI_GETCURRENTPOS</a></li>
<li><a href="http://www.scintilla.org/ScintillaDoc.html#SCI_LINEFROMPOSITION" rel="nofollow ugc">SCI_LINEFROMPOSITION</a></li>
<li><a href="http://www.scintilla.org/ScintillaDoc.html#SCI_GETCOLUMN" rel="nofollow ugc">SCI_GETCOLUMN</a></li>
</ul>
<p dir="auto">How these get called is up to how you are doing it in C# exactly. For example if you are using the <a href="https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net" rel="nofollow ugc">newest C# plugin template</a> then you’d can use <a href="https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/blob/e7e0a2b966c2ef3bdc16c8dfb2f007cc8a728abc/Visual%20Studio%20Project%20Template%20C%23/PluginInfrastructure/ScintillaGateway.cs#L156" rel="nofollow ugc">this method</a> for the first one I mentioned above.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23358</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23358</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Wed, 05 Apr 2017 22:11:12 GMT</pubDate></item></channel></rss>