<?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[Python script plugin alternative working with python 3?]]></title><description><![CDATA[<p dir="auto">Hi!<br />
I just discovered the awesome python script plugin, and then… that it got stuck in python2.</p>
<p dir="auto"><strong>Is there a way to run a python (3.6) script that would do it’s work in the text of a specific tab</strong>?<br />
For instance how can  run a simple script that would apply the python function upper() to the text *. The way pythonscript was working with scientilla was awesome : editor.getText() <em>do something with it and then</em> editor.setText().</p>
<p dir="auto">It’s possible to add custom macro, and call them using shortcut (or launch them from the menu). But is it possible to do the same with a python3 script?</p>
<p dir="auto">(I know it’s possible to run script using Pynpp, among other options. I’m looking for a way to run a script that would work on np++ tab)</p>
<p dir="auto">*I know there is other solution for that: it’s an example. A typically 3.6 example would be to run this script :<br />
<em>answer = editor.getText()<br />
editor.addText(print(f"did notepad++ made it? {answer}."))</em><br />
on a tab containing this:<br />
<em>“yes, as always!”</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13056/python-script-plugin-alternative-working-with-python-3</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 00:45:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13056.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jan 2017 21:03:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python script plugin alternative working with python 3? on Sat, 07 Jan 2017 23:04:09 GMT]]></title><description><![CDATA[<p dir="auto">You’re welcome.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20692</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20692</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Sat, 07 Jan 2017 23:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to Python script plugin alternative working with python 3? on Sat, 07 Jan 2017 19:03:09 GMT]]></title><description><![CDATA[<p dir="auto">that’s interesting, I did not know about that langage. Thanks for the link!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20685</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20685</guid><dc:creator><![CDATA[Crn D]]></dc:creator><pubDate>Sat, 07 Jan 2017 19:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to Python script plugin alternative working with python 3? on Sat, 07 Jan 2017 15:05:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Related:<br />
You may find the <a href="https://notepad-plus-plus.org/community/topic/12968/plugin-update-luascript-v0-6-0" rel="nofollow ugc">LuaScript Plugin</a> useful.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34">@dail</a> has done a great work.</p>
<hr />
<blockquote>
<p dir="auto">ps about the notepad forum:<br />
1: the bottom of the text field doesn’t show in chrome.</p>
</blockquote>
<p dir="auto">This frequently happens in Firefox too.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20670</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20670</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Sat, 07 Jan 2017 15:05:48 GMT</pubDate></item><item><title><![CDATA[Reply to Python script plugin alternative working with python 3? on Sat, 07 Jan 2017 11:49:43 GMT]]></title><description><![CDATA[<p dir="auto">For those who also wonder, the work around is to use a python3.6 script that work with files (and not scintilla). Past the text that need to be processed in a tab, and run it from the tab of the script.</p>
<p dir="auto">ps: This python 3.6 script below won’t work through the “python script” plugin:</p>
<p dir="auto">Mytext = editor.getText()<br />
editor.addText(print(f"my text is: {MyText}."))</p>
<p dir="auto">ps about the notepad forum:<br />
1: the bottom of the text field doesn’t show in chrome.<br />
2: a button to cancel an edit is also missing</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20667</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20667</guid><dc:creator><![CDATA[Crn D]]></dc:creator><pubDate>Sat, 07 Jan 2017 11:49:43 GMT</pubDate></item></channel></rss>