All Questions
249
questions
-1
votes
0
answers
18
views
Returning a wrong result when trying to add a value to the match by the PythonScript in Notepad++ [duplicate]
some of the GPS coordinates in my document are wrong.
The coordinates in the document shown like: "-246.129464", "-246.129515", "-246.12978"
But the real coordinates have ...
0
votes
2
answers
75
views
Reverse Right to left text with examples [closed]
I want to get this
The text comes as a sample like this
sample
This:
hello all my name nora
like this:
nora name my all hello
Of course, the important point is that this is not just for one text, I ...
-3
votes
1
answer
46
views
Transpose within Transpose Notepad++? [closed]
I have a text file that looks like this (but 132k lines)
********
name : one
Place : city
Initial: none
********
name : two
Place : city2
Initial: none
********
name : three
Place : city3
Initial: ...
0
votes
0
answers
63
views
How do I get Notepad++'s nppExec to print to the console as they happen instead of all at once after the script exits?
I've got nppExec set up to execute Python scripts. However, the print statements don't go to the console while the script is executing, only after the script exits. This isn't obvious unless the ...
0
votes
0
answers
76
views
How can I get Python to find local files when running from inside Notepad++?
I’m using the NppExec plugin to run Python and I’ve used a few variations to get this working, none of which allow the script to find local images.
Here’s an example script:
from tkinter import *
from ...
0
votes
1
answer
42
views
Can notepad++ use sql syntax color inside triple quotes in python file?
Actually the question is in the title.
I really want to write Python code with Python highlighting, but if there were triple quotes (or anything else) then the syntax highlighting rules would change ...
1
vote
1
answer
506
views
Files changing from UTF-8 to ANSI
I know a bit about computers, but this one has me puzzled.
Background: I am preparing to teach Python to Middle schoolers in an environment where I can't install Python. I'm trying to use an online ...
1
vote
2
answers
60
views
Notepadd++ Python Script: Delete everything between the last 3 " - " if line starts with X
Looking at the end of the line counting the " - " backwards (notice the spaces) and delete the text but only if the line starts with fx TEST.
Before
TESTMouse - Dog - CAT - Fish
Mouse - Dog -...
-1
votes
1
answer
198
views
Notepad++ mass multiply a specific integer after a text
I have notepad++ with python script installed, is there a way to mass multiply all numbers that come after a specific string?
For example:
ExperienceGained 10 + X
I have thousands of those lines and I ...
0
votes
1
answer
117
views
File. exe in win cannot identify the file encoding, the file seems to be corrupted, what can be done?
For some files, python's chardet library of chardet.detect(f.read())['encoding'] returns None.
path=r"C:\A chinese novel.TXT"
with codecs.open(path, 'rb') as f:
encoding=chardet.detect(f....
-1
votes
1
answer
105
views
How to duplicate a file in Notepad++ by Python with the same lexer
I use a lot Notepad++ to write code. I often need to duplicate a file to use it as a template for another file I have to write. Of course, the new file should share the same lexer. How to do that?
1
vote
0
answers
24
views
Find duplicate elements in xml, then delete itself but still format xml properly [duplicate]
Running a massive xml and don't have access to the code they used to get the information from sql, so I can't parse it from that end. Need to stop repeating elements, but someone still capture all ...
-1
votes
1
answer
96
views
PSPAD how to search a specific word between similars in a huge text
I have many words like the following list:
yellow
yellow_1
yellow_2
yellow_orange
yellow_blu
I would like only to find the words yellow (ex. like the first of the list) and to substitute with another ...
2
votes
2
answers
3k
views
Run Python on Notepad++, execute screen
https://medium.com/never-too-late-to-machine-learn/how-to-step-by-step-setup-notepad-to-run-python-scripts-e1ce3b3ac7fe
I am reading from this tutorial linked above.
What I am doing is trying to run ...
0
votes
1
answer
177
views
Open a file (not .txt) with notepad++ and replace a line with string
I'm trying to open a file, needs to be with notepad++, and replace a certain line and position with a string
I saw some examples using the open function with readlines,write,append,replace,... but the ...