<?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[User defined language: Restrict line length]]></title><description><![CDATA[<p dir="auto">Maybe that’s a wish from the good old times, but …</p>
<p dir="auto">I’m working with some scientific software that needs its input files as plaintext files - a classic case for np++. I’ve taken a look at defining a user defined language for the input file syntax, but ran into a nasty thing:</p>
<p dir="auto">That software has its origins in the ninteen-fifties, when FORTRAN was the real hot stuff (and a real relief from coding in machine code …). Therefore the input line length is restricted to 80 characters (the maximum capacity of a common punch card at that time :). Since transgressing that limit is a common mistake in these input files, which usually causes cryptic error messages (never ever reading “line loo long” …), I’d like to include that restriction into the language definition.</p>
<p dir="auto">I can’t find an option for that … any hint ?</p>
<p dir="auto">If there no option for that now, I herewith declare that as a feature wish !</p>
<p dir="auto">Greetings</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21421/user-defined-language-restrict-line-length</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:44:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21421.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Jul 2021 09:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to User defined language: Restrict line length on Thu, 01 Jul 2021 12:08:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frank-helk" aria-label="Profile: Frank-Helk">@<bdi>Frank-Helk</bdi></a></p>
<p dir="auto">While you can’t restrict line-length, you can set something up to get a visual indication for problem lines; an example setup:</p>
<p dir="auto"><img src="/assets/uploads/files/1625140990738-43a97056-b81c-4011-975c-c1cd8083b954-image.png" alt="43a97056-b81c-4011-975c-c1cd8083b954-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Produces a look like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1625141028764-8830f27d-bf23-411f-9481-8c9db3c10d5a-image.png" alt="8830f27d-bf23-411f-9481-8c9db3c10d5a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">which clearly identifies long lines in cyan color.  The color can of course be changed to whatever you like.</p>
<p dir="auto">If you’d like something that will explicitly inform you of long lines, I can assist you in writing a script to do so.  Post back if you’d like to try this approach.  Here’s an existing script that might help:  <a href="https://community.notepad-plus-plus.org/post/35567">https://community.notepad-plus-plus.org/post/35567</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/67571</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67571</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 01 Jul 2021 12:08:00 GMT</pubDate></item></channel></rss>