You are here

Notepad++ Python Script Plugin?

7 posts / 0 new
Last post
Lord_Theren
Lord_Theren's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2013-10-24 16:11
Notepad++ Python Script Plugin?

I am trying to get this plugin to work with my portable installation of Notepad++ but I have no idea how to use it and the SourceForge page did not help. Can someone help me with this?

EDIT:What I really need to know is if the plugin includes a compiler/interpreter and how to use the python console. Specifically, whenever I enter a command in the Python Console (print "hello") it prints what I typed, not just Hello.

Wm ...
Offline
Last seen: 6 years 4 months ago
Joined: 2010-07-17 12:37
try this

create new file in notepad++
plugins / python script / show console

it should give you some python details

next to the >>> enter

print "Hello, world!" # python 2

or

print("Hello, world!") # python 3

press the run button

Wm

Lord_Theren
Lord_Theren's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2013-10-24 16:11
That is what I was doing.

That is what I was doing. Does the plugin use the Windows Command Prompt for its console? On the computers at my school, WCP is blocked. Could this be the reason it's not working?

The two most important days of your life are the day you are born and the day you find out why.

Wm ...
Offline
Last seen: 6 years 4 months ago
Joined: 2010-07-17 12:37
console is inside notepad++

console is inside notepad++
no sign of wcp
sample from console
===
Python 2.7.6-notepad++ r2 (default, Apr 21 2014, 19:26:54) [MSC v.1600 32 bit (Intel)]
Initialisation took 1875ms
Ready.
>>> print "Hello, world!" # python 2
Hello, world!
>>> print "Hello, PortableApps"
Hello, PortableApps
===
i don't know the innards well but it looks like it uses

Notepad++Portable\App\Notepad++\plugins\PythonScript.dll

by default hence the

Python 2.7.6-notepad++ r2 (default, Apr 21 2014, 19:26:54) [MSC v.1600 32 bit (Intel)]

line above which doesn't match my system installed python, i.e. it is self contained

no idea why it won't work at school

BTW, what were you planning to do with it ?

Wm

Lord_Theren
Lord_Theren's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2013-10-24 16:11
I have just tried this at

I have just tried this at home and i still cant get it to work. I need the plugin to write Python code.

The two most important days of your life are the day you are born and the day you find out why.

Wm ...
Offline
Last seen: 6 years 4 months ago
Joined: 2010-07-17 12:37
I'm Win XP remember

I'm Win XP remember, it works here so you almost certainly have better kit than me.

Young person, you do *not* need the plugin to write python code.

My question is, do you want to write python scripts that control how NotePad++ behaves ?

My guess is you were just curious Sad

Wm

Lord_Theren
Lord_Theren's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2013-10-24 16:11
I have tried using it on both

I have tried using it on both WinXP and Win7. I know I don't need the plugin to write in Python, but it sure would be helpful.

The two most important days of your life are the day you are born and the day you find out why.

Log in or register to post comments