Problem with Margins in PythonScript Plugin and Margins in Distraction Free mode
-
I have not read the whole thread but from what I understand you
have Npp installed and so I assume your configuration directory
is the one in APPDATA, could that be?
If not, can you paste your debug information, which is available
from the last menu item (the ? menu
)? -
I know this is going back to the beginning, but I’ve been away for a few days.
@Neko-Nekokovic originally said,
lso is it possible that I can edit Margin values inside of Distraction Free mode? Currently the default is quite a bit “wider” than my 80 characters centered.
yes. That’s why there’s a setting for it.
On my current monitor, which could handle about 230 characters wide in true full-screen mode (View > Toggle Full Screen): if Settings > Preferences > Margins/Border/Edge > Padding > Distraction Free is at 9 (the widest), I get about 170 characters wide in Distraction Free mode, and at 3 (the narrowest), I get about 70 characters wide; and at the default 4, I get about 110 characters wide.
If that’s not enough range for you, then you will have to go through the PythonScript rigamarole, as has already been described to you.
As has been described, though I’ll phrase it differently:
C:\Program Files\Notepad++\plugins\PythonScript\scripts
is for “machine scripts”. For a standard installation, user scripts will go in the%AppData%
config directory, which is technically%AppData%\Notepad++\plugins\config\PythonScript\scripts
(which you can paste directly into Windows Explorer or the File > Save As dialog) – this will probably resolve to something likeC:\users\<your user name here>\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts
, but the infinite number of Windows conifgurations possible means this is not guaranteed – whereas just pasting in the%AppData%
-based path will work on any Windows installation I’ve used in the last couple decades. And, as @Ekopalypse said, if you are having trouble finding the user-scripts directory, using the ?-menu’s Debug Info, and copying that debug info and pasting into your reply, will tell us where your user-script location will be. -
Umm, the one where I am employed?
And where are you employed?
To keep people from going there.
Oh come on man, that’s circular.
“Why is it banned? Because people should not use it.
Why should people not use it? Because it’s banned.”Why would you want to keep someone from using imgBB or Imgur?
Imgur was used here before the forum software got the ability to directly paste images. So, yes, I could access that one.
But it is all kind of pointless, because we CAN paste here directly and there is no reason at all to user external sites for such things.It’s really not the problem to paste a picture instead of posting a hyperlink. Sure if that’s “the standard” on this forum I’ll do it. Not a big deal anyway.
But I’m curious about the reasons imgBB or imgur are advised not to be used. This is the first time I ever heard of that and I’d like to know the reasoning behind it.
-
@Ekopalypse Hi, first thanks for the comment.
I understand you have Npp installed and so I assume your configuration directory is the one in APPDATA, could that be?
No I don’t have a Configuration directory in %Appdata%/Notepad++ (neither in the parent directory, that is only %Appdata%)
If not, can you paste your debug information, which is available from the last menu item (the ? menu)?
I sure can. Here it is:
Notepad++ v8.4.4 (64-bit) Build time : Jul 15 2022 - 17:54:42 Path : C:\Program Files\Notepad++\notepad++.exe Command Line : "C:\Users\krete\Desktop\Alat\Filozof\New Text Document.txt" Admin mode : OFF Local Conf mode : OFF Cloud Config : OFF OS Name : Windows 10 Pro (64-bit) OS Version : 21H2 OS Build : 19044.2006 Current ANSI codepage : 1252
(Don’t know why there is such a big gap below the picture. I’ve tried to Edit, but I cannot make it shorter for some reason. Sorry)
-
@PeterJones Thanks for the comment.
I know this is going back to the beginning, but I’ve been away for a few days.
No, it’s fine, I’m happy people are eager to help. I appreciate that.
Settings > Preferences > Margins/Border/Edge >Padding > Distraction Free is at 9 (the widest)
I have tried every number from 3 to 9. Every number from 4 onwards is way too wide, while 3 was way to narrow. It’s 63 characters wide.
Aah %Appdata%/Notepad++/plugins/PythonScript/scripts
I was looking for a config directory into %Appdata% itself.
Anyway, the folder %Appdata%/Notepad++/plugins/PythonScript/scripts is empty.
And here is my Debug Info:
Notepad++ v8.4.4 (64-bit) Build time : Jul 15 2022 - 17:54:42 Path : C:\Program Files\Notepad++\notepad++.exe Command Line : "C:\Users\krete\Desktop\Alat\Filozof\New Text Document.txt" Admin mode : OFF Local Conf mode : OFF Cloud Config : OFF OS Name : Windows 10 Pro (64-bit) OS Version : 21H2 OS Build : 19044.2006 Current ANSI codepage : 1252 Plugins : mimeTools (2.8) NppConverter (4.4) NppExport (0.4) PythonScript (2)
Thanks for your comment.
-
@Neko-Nekokovic said in Problem with Margins in PythonScript Plugin and Margins in Distraction Free mode:
And where are you employed?
Irrelevant. My employer blocks imgBB as well.
Why would you want to keep someone from using imgBB or Imgur?
Alan didn’t say he wanted to. Alan said his employer blocked the site. And “why” a particular corporation’s IT department blocks something is rather irrelevant to the conversation. The fact is, they do – and many do. (My guess is that image-only sites are blocked because they aren’t often relevant to an employee’s job, and they often contain NSFW pictures, which one shouldn’t be perusing on the company’s dime. I’ve always been surprised that mine allows imgur, to be honest.)
No I don’t have a Configuration directory in %Appdata%/Notepad++
That’s because
%AppData%\notepad++
is the configuration directory; there isn’t one called “configuration” in there.4 onwards is way too wide, while 3 was way to narrow
Okay. That is, of course, a personal preference. (i don’t see a significant difference between 3 and 4, so it’s strange that one is way too wide and the other way too narrow. But to each their own.)
%Appdata%/Notepad++/plugins/PythonScript/scripts
That’s not what I said:
%AppData%\Notepad++\plugins\config\PythonScript\scripts
But if it’s empty, that just means you don’t have any user scripts yet. That’s where user scripts go, whether or not you currently have any. Once you put one in there, then you will have a user script.
Good luck
-
My guess is that image-only sites are blocked because they aren’t often relevant to an employee’s job, and they often contain NSFW pictures
NSFW part makes sense but it’s still a bit strange to me. I hope someone will explain it to me since this is the very first time I’ve heard about such a practice.
That’s because %AppData%\notepad++ is the configuration directory; there isn’t one called “configuration” in there.
Ah, okay. Thanks.
(i don’t see a significant difference between 3 and 4, so it’s strange that one is way too wide and the other way too narrow. But to each their own
Yeah it is strange indeed. 3 is 63 characters wide, while 4 is 97. Maybe that has to do with my weird resolution. That’s why I’m asking for a manual configuration of margin width, I guess I have to try it out manually and see how it appears.
That’s not what I said: %AppData%\Notepad++\plugins\config\PythonScript\scripts
You’re correct, I misstyped. I omitted the “config” directory. Anyway that directory is empty.
I will try to put Python user Script there and hope it will work.
Thanks.