• Adding Vertical Lines

    12
    2 Votes
    12 Posts
    7k Views
    ludamo 0L

    I have just worked my way through this topic to add the vertical lines so I wanted to say thanks for the guidance and just to add that instead of 2 toolbar buttons (On & Off) you can have a toggle button if you use the following NPPExec script (or something like it):

    NPP_CONSOLE ? sci_sendmsg 2362 if $(MSG_RESULT) = 3 then sci_sendmsg 2363 0 else sci_sendmsg 2363 3 endif
  • Remove column from CSV files

    7
    0 Votes
    7 Posts
    8k Views
    Jeshua GuzmanJ

    @guy038 Great thanks!

  • Filtering files for opening with FTP profiles

    2
    0 Votes
    2 Posts
    224 Views
    PeterJonesP

    @Angela-Ada-Maria-Esposito ,

    My opinion: thousands of files in one directory is poor file management; if you are in control of the server and file arrangement, I would highly recommend re-structuring so that no single directory on the FTP server has more than 100 or so files, if at all possible, arranged in some meaningful structure. If you are not in charge of the server, then talk to whoever is.

    That said, on to the technical issue: no, as far as I’ve ever seen, the NppFTP plugin does not have a feature to filter its directory listing. You can use the Plugins > NppFTP > About dialog to click on Visit NppFTP Site, and then click on New Issue, and use that interface to request that NppFTP add a “filter files” or similar option

  • app won't exit

    2
    0 Votes
    2 Posts
    309 Views
    Terry RT

    @Clayton-Kirkwood said in app won't exit:

    I consider this a bug. Is anybody else having this problem?

    If your problem was indeed a bug we’d have heaps of complaints from users. So I’d tend to think more about the way you are operating Notepad++ (NPP) or the environment it’s running under.

    There are some tests you could perform:

    Open NPP without any open files, it will then have just one blank/empty tab open. Then close NPP and see if any difference occurs. If so, then maybe the open files you have open when the problem occurs have a bearing on the problem. Are they large files? Is the location of the “saved” versions on a remote/network drive and it’s taking a while for Notepad++ to get a response back that they’ve been saved? Download another version of NPP, preferably the portable version. This can be installed elsewhere on your system. See how it works? When you say NPP is still on the taskbar, for how long? Can you leave it a while to see if it does close eventually? Presumably the NPP you have installed is from the official source (https://notepad-plus-plus.org/downloads/). Under each version a link to download a portable version is present. This isn’t really installed, rather just unzipped into a folder (not under program files). It is self contained and won’t mess with your installed version.

    So we can only give you some guidance on what to search for. You will need to perform those tests, and put in some effort to help identify the reason.

    Terry

  • UDL Delimiter after break and whitespace only

    2
    0 Votes
    2 Posts
    286 Views
    PeterJonesP

    @Ruby-Goody ,

    Notepad++'s UDL system does not accept regexp.

    Thus the UDL system as designed cannot differentiate between a # at the beginning of the line and one in the middle of the line for delimiters and operators. That is a limitation of the UDL system. But if you look at the Markdown (preinstalled) UDL that ships with Notepad++ (which you could be using, rather than defining your own, BTW), it uses the Comment line style for headers, and the Comment Line can require that the comment line only start at the beginning of the line, or only at the beginning of the line (with optional whitespace). So by using Comment Line instead of Operator or Delimiter, it should work as expected.
    8d9eed58-d3ad-4d9c-b0d9-81d0ee6a749f-image.png

    If that’s not sufficient, but you are willing to use a plugin to help things out, the EnhanceAnyLexer plugin will allow adding a layer where a regex is used to decide on the foreground color for individual built-in lexers or UDL languages. You can install that plugin from the Plugins Admin interface in Notepad++. To use that plugin, you would define your UDL without defining # for headers; then you would use Plugins > EnhanceAnyLexer > Enhance Current Language, and then add a line in the config file where the plugin started you, something like

    0x0080FF = ^\h*#.*$

    … which would convert the entire line to orange foreground if it starts with zero or more spaces or tabs followed by a #

  • Converting Windows file names to links

    19
    0 Votes
    19 Posts
    1k Views
    tho-gruT

    Thanks for all your help. I appreciate it.

    When using this macro in my environment it work really fine.

    I figured out an additional requirement while using it: The macro must leave already converted links untouched. This requirement is already fulfilled in my opinion because either S/R A and S/R B will not match any more.

    This is really useful!

    Regards
    Thomas

  • Code highlighter issue in NPP v8.4.5

    3
    0 Votes
    3 Posts
    368 Views
    James RosemaryJ

    @Alan-Kilborn Thank you for your comment.
    I’ll wait til the next iteration then…

  • EOL Code Removal in Double Quote

    2
    0 Votes
    2 Posts
    240 Views
    Kenneth YuK

    @Kenneth-Yu

    Problem solved, I eventually found out that the error comes in \r\r\n, replaced them and all is good.

  • Wordcount splitting words on apostrophes

    8
    0 Votes
    8 Posts
    942 Views
    guy038G

    Hello, @ken-h, @stewart-baker, @alan-kilborn and All,

    Refer also to my post here

    Best Regards,

    guy038

  • 0 Votes
    3 Posts
    549 Views
    mpmuskie20M

    @Alan-Kilborn Thanks! Worked a treat!

  • Creating a UDL with regex expressions?

    3
    0 Votes
    3 Posts
    1k Views
    PeterJonesP

    @Manolo-Müller-Menendez said in Creating a UDL with regex expressions?:

    logfile by using regex filter

    BTW: the AnalysePlugin was designed specifically to find and pull out specific text in logfiles using multiple regular expressions. You might want to check it out.

  • Style Markers for word fragments are not working anymore?

    3
    0 Votes
    3 Posts
    179 Views
    Manolo Müller MenendezM

    @Alan-Kilborn Thx… That did it.

  • Tabs Closing after exit

    6
    0 Votes
    6 Posts
    919 Views
    Alan KilbornA

    I really don’t know that we’ve had to explain before how to recover data from the special backup files that Notepad++ creates.

    The WORST way is what the OP has done above – opening and continuing to edit a “new 2@yyyy-mm-dd_hhmmss” file directly.

    Another bad way to do it would be to create a new “new 2” tab and the open “new 2@yyyy-mm-dd_hhmmss” briefly, only long enough to copy its data out and paste into the “new 2” tab, and continuing to work on that “file”.

    The best way, as Peter hints, is to create a new tab and paste the data there, then IMMEDIATELY save it as a hard-named file in the file system, i.e., don’t let it sit there as “new 2” again (opening yourself up to the original problem recurring).

  • Selecting text while doing a search in a macro

    3
    0 Votes
    3 Posts
    954 Views
    PeterJonesP

    Alternatively: click Edit > Begin/End Select with the caret after the | (that is, wherever you want the selection to start). Then do a normal Find or Incremental Search or Find Next or what have you to find the “end” of the block you want to select, and then do Edit > Begin/End Select again, which will select that whole range of text, even if you do a simple search without the fancy regex syntax. You can use Settings > Shortcut Mapper to assign a key to the Begin/End Select, so that way you don’t have to use the menu every time.

  • R/IDENTIFIER missing?

    6
    0 Votes
    6 Posts
    435 Views
    Mikel PettyM

    @PeterJones,
    Your solution worked perfectly.
    Thank you for your quick and useful response.

  • Select the last N characters of selected line

    6
    0 Votes
    6 Posts
    2k Views
    L SL

    @PeterJones said in Select the last N characters of selected line:

    (Location=“file://localhost/C:/Users/nilsn/Music/DJ%20Master%20Folder/JOBB/Hits%20Snerikes%202/.*).mp3”

    BINGO!

    That worked.

    Thanks a bunch dude

  • Can anybody help

    2
    0 Votes
    2 Posts
    285 Views
    PeterJonesP

    @Jeremy-Miller ,

    As this is a Forum for discussion about Notepad++, asking for advice on alternatives to Notepad++ is rather off-topic.

    There are plenty of internet forums and sites (like the alternative-to site that you linked) that are for discussing and evaluating software in general. I would think that going to a Chromebook forum and asking “what are people’s favorite Chromebook text editors” would be a reasonable action for someone in your position – or, better, finding the billion or so similar such questions on those Chromebook sites.

    I literally just googled for “chromebook text editors”, and Google’s summation response was literally “the 10 best editors for your chromebook”, where the second one in the list (“Text” – wow, that’s even less creative a name than Notepad++!) is described as an alternative to Notepad++. So searching for either of those phrases in your favorite search engine is likely to produce better results than a bunch of Notepad++ users in a Notepad++ forum, most of whom might not even use the chromebook, could give. (Looking at the screenshots in the article, I would say that “Caret” looks even better than “Text”, but that’s just based on screenshots; I’ve never used either product. And this forum is not a place for in-depth discussions of such things, or of tons of links to external sites.)

  • 0 Votes
    27 Posts
    3k Views
    Neko NekokovicN

    @PeterJones

    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.

  • Refresh issue when document is modified outside

    2
    0 Votes
    2 Posts
    186 Views
    PeterJonesP

    @RevitArkitek ,

    Before we can begin to confirm, we have to understand your circumstances:

    What is your ?-menu’s Debug Info? Are you in View > Monitoring Mode or not? What are your Settings > Preferences > MISC > File Status Auto-detection settings? Please note that the third setting in that menu is a highly-likely culprit
    03192505-06c4-4139-8087-0745388549f7-image.png
    (though I would have expected slightly different behavior, as I would have expected it would scroll to the end, not to the beginning. But there might be some weird combination when you have both that and file-monitoring mode enabled simultaneously)
  • How to delete ANSI characters such as Ââ in multiple UTF-8 files?

    4
    0 Votes
    4 Posts
    619 Views
    Alan KilbornA

    @Neculai-I-Fantanaru

    Another solution I find on internet, it to use uni2ascii

    Off-topic. Please refrain from posting off-topic information here.