<?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 show a thin vertical line after column 112?]]></title><description><![CDATA[<p dir="auto">Assume I open a textfile.</p>
<p dir="auto">To visually verify which of the 523415 lines are longer than 112 chars I would appreciate to have a feature to let NP++ show a vertical line after this column.</p>
<p dir="auto">Is this possible?</p>
<p dir="auto">How?</p>
<p dir="auto">Thank you<br />
Matt</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11884/how-to-show-a-thin-vertical-line-after-column-112</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 10:15:49 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11884.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 May 2016 06:12:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to show a thin vertical line after column 112? on Tue, 31 May 2016 10:05:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Matt</strong>,</p>
<p dir="auto">In addition to the <strong>vertical edge</strong> feature, given by <strong>dail</strong>, you could search, in <strong>Regular expression</strong> mode, for the regex :</p>
<p dir="auto"><strong><code>^.{112}\K.+</code></strong>. This regex find <strong>ANY</strong> range of characters, in a line, located <strong>AFTER</strong> column <strong>112</strong>, throughout the <strong>current</strong> file</p>
<p dir="auto">On the other hand, the regex <strong><code>^.{112}\K</code></strong> would match the <strong>zero length</strong> string, located between the columns <strong>112</strong> and <strong>113</strong>.</p>
<p dir="auto">So, after a <strong>first</strong> search, hit the <strong>ESC</strong> key to close the <strong>Find</strong> dialog. Then any hit, on the <strong>F3</strong> function key, will move the <strong>cursor</strong> just <strong>after</strong> column <strong>112</strong>, of the <strong>next</strong> line, with <strong>112</strong> or <strong>more</strong> characters long :-)</p>
<hr />
<p dir="auto">Thinking about location by <strong>column</strong>, here are, below, some <strong>usefu</strong>l regexes, relative to that topic. Of course, just <strong>replace</strong> the variable <strong>‘n’</strong>, by an <strong>integer</strong> !</p>
<pre><code>•---------------------------------------------------------------------------------•
|                  With the "Count" button, of the "Find" dialog                  |
|                                                                                 |
|   Options  "Regular expression" CHECKED  and  ". matches new line" UNCHECKED    |
•-------------•-------------------------------------------------------------------•
|  ^\R        |  COUNT all the EMPTY     lines                                    | 
|  ^.+\R      |  COUNT all the NON EMPTY lines                                    |
|  ^.+        |  COUNT all the NON EMPTY lines                                    |
|  ^.*\R      |  COUNT all the lines                                              |      
|             |                                                                   |
|  ^.{n+1,}   |  COUNT all the lines,           of MORE than 'n' characters long  |
|  ^.{n}\R    |  COUNT all the lines,           of, EXACTLY, 'n' characters long  |
|  ^.{1,n-1}  |  COUNT all the NON EMPTY lines, of LESS than 'n' characters long  |
|  ^.{0,n-1}  |  COUNT all the lines            of LESS than 'n' characters long  |
•-------------•-------------------------------------------------------------------•


•-----------------------------------------------------------------------------------------------------------------------------•
|                                      With the "Find Next" button, of the "Find" dialog                                      |
|                                                                                                                             |
|                         Options  "Regular expression" CHECKED  and  ". matches new line" UNCHECKED                          |
•-------------•---------------------------------------------------------------------------------------------------------------•
|  ^.{n}\K.+  |  FIND any range of characters, in a line, located AFTER column 'n', in ALL lines of MORE than 'n' characters  |
|  ^.{n}\K.*  |  FIND any range of characters, in a line, located AFTER column 'n', in ALL lines of 'n' or MORE characters    |
|             |                                                                                                               |
|  ^.{n}\K    |  MOVE the CURSOR to the location, BETWEEN column 'n' and 'n+1',     in ALL lines of 'n' or MORE characters    | 
•-------------•---------------------------------------------------------------------------------------------------------------•


•----------------------------------------------------------------------------------------------------------------------------------•
|    With the "Replace All" button of the "Replace" dialog      ( NOTE : Button "Replace" FORBIDDEN, due to the '\K' form !  )     |
•-------------•----------------•---------------------------------------------------------------------------------------------------•
|  Find what  |  Replace with  |          Options  "Regular expression" CHECKED  and  ". matches new line" UNCHECKED               |
•-------------•----------------•---------------------------------------------------------------------------------------------------•
|  ^.{n}\K.+  |                |  DELETE  any character,  AFTER column 'n', in ALL lines of MORE than 'n' characters               |
|             |                |                                                                                                   |  
|  ^.{n}\K.+  |     STRING     |  REPLACE all characters, AFTER column 'n', by "STRING", in ALL lines of MORE than 'n' characters  |
|  ^.{n}\K.*  |     STRING     |  REPLACE all characters, AFTER column 'n', by "STRING", in ALL lines of 'n' or MORE characters    |
|             |                |                                                                                                   |  
|  ^.{n}\K    |     STRING     |  INSERT "STRING", at column 'n+1', in ALL lines of 'n' or MORE characters                         |
•-------------•----------------•---------------------------------------------------------------------------------------------------•
</code></pre>
<p dir="auto">Enjoy N++,</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16158</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16158</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 31 May 2016 10:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to show a thin vertical line after column 112? on Mon, 30 May 2016 12:46:44 GMT]]></title><description><![CDATA[<p dir="auto"><code>Settings &gt; Editing &gt; Vertical Edge Settings</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/16155</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16155</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Mon, 30 May 2016 12:46:44 GMT</pubDate></item></channel></rss>