<?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[turn on&#x2F;off the line-ending symbols via script]]></title><description><![CDATA[<p dir="auto">Is there a way to turn on and off the visibility of the line-ending symbols via Pythonscript?  I can <em>TOGGLE</em> the state by coding this:</p>
<pre><code>notepad.menuCommand(44026)
</code></pre>
<p dir="auto">but I don’t see how I can:</p>
<ol>
<li>know the current state (being shown already or not)</li>
<li>set it definitively to ON</li>
<li>set it definitively to OFF</li>
</ol>
<p dir="auto">Ideas?  Thx.</p>
<p dir="auto">Another thing: When I code it as above, it gets out of sync with the menu option View | Show Symbol | Show End of Line setting.  Ideally I’d like something that I can do via Pythonscript that keeps everything in sync…</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14585/turn-on-off-the-line-ending-symbols-via-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 07:36:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14585.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Oct 2017 19:23:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to turn on&#x2F;off the line-ending symbols via script on Mon, 16 Oct 2017 13:37:30 GMT]]></title><description><![CDATA[<p dir="auto">FYI, I was also just reminded that <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a>, in <a href="https://notepad-plus-plus.org/community/topic/14045/invisible-characters-unwanted/16" rel="nofollow ugc">this other thread</a>, had mentioned the <code>editor.getViewWS()</code> and <code>editor.getViewEOL()</code> commands, which I keep forgetting.  These answer your first step of “know the current state”, so you could base the logic of whether you issue the <code>notepad.menuCommand()</code> based on those editor functions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27423</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27423</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 16 Oct 2017 13:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to turn on&#x2F;off the line-ending symbols via script on Thu, 05 Oct 2017 19:35:02 GMT]]></title><description><![CDATA[<p dir="auto">I had experimented with something similar, which I can easily translate into what you want .  To guarantee I am in View EOL, I run two commands: first</p>
<pre><code>notepad.menuCommand(MENUCOMMAND.VIEW_ALL_CHARACTERS)
</code></pre>
<p dir="auto">This <em>toggles</em> view all characters first – whether it’s in view all on or off, I now know it is <em>not</em> in view eol.  So I can then safely turn it on with a toggle:</p>
<pre><code>notepad.menuCommand(MENUCOMMAND.VIEW_EOL)
</code></pre>
<p dir="auto">Or, in one fell swoop:</p>
<pre><code>notepad.menuCommand(MENUCOMMAND.VIEW_ALL_CHARACTERS)
notepad.menuCommand(MENUCOMMAND.VIEW_EOL)
</code></pre>
<p dir="auto">Similarly, to guarantee I toggle view eol off:</p>
<pre><code>notepad.menuCommand(MENUCOMMAND.VIEW_ALL_CHARACTERS)
notepad.menuCommand(MENUCOMMAND.VIEW_EOL)
notepad.menuCommand(MENUCOMMAND.VIEW_EOL)
</code></pre>
<p dir="auto">You can do something similar for any of the three (<code>VIEW_EOL</code>, <code>VIEW_ALL_CHARACTERS</code>, or <code>VIEW_TAB_SPACE</code>) as well.</p>
<p dir="auto">(And I see the View &gt; Show Symbol keeping in sync…)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27218</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 05 Oct 2017 19:35:02 GMT</pubDate></item></channel></rss>