• Can you use separate fonts for separate documents?

    5
    0 Votes
    5 Posts
    346 Views
    Dušan MajakovićD

    @PeterJones

    Done! I finally got it to work!

    Thank you so much for the help!

  • notepad++ pro*c color highlighting

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @Bob-Smith

    Yes I am positive. I compiled the file on my server then ran the file.

    That really doesn’t answer the question from my perspective, because I thought it was the file on your local machine that was having problems with and doubting the integrity of, since that’s the one that’s not properly syntax highlighting. You gave a cryptic “On the local files it shows text file which I do not understand”, which implied to me that what you were seeing on the local computer (not on the server) was not PRO*C code like you were expecting. But now you are saying you compiled it on the server. So I am not understanding the circumstances you are trying to describe. How is it “text file which I do not understand” but at the same time valis PRO*C code???

    Its treating them different based on whether it is a local file or remote file

    As I said, Notepad++ cannot see the difference, because NppFTP puts the file locally on your computer, and Notepad++ opens both files from your computer – the one we are calling remote, from NppFTP, and the one that I am calling “local”, from your computer. If they have the same extension, Notepad++ should be treating them the same (unless one of them happens to have the first line start with <? or #/usr/bin/bash or similarly recognized first-line phrases, which can cause Notepad++ to ignore the extension)

    I am using my home computer to respond.

    Then you will need to gather all the requested information, then come back when you are able to post that. Without showing us the difference between what Notepad++ interprets and shows on remote files and what Notepad++ interprets and shows on local files, you are asking the impossible of us (we cannot see through your eyes or read your memory; we have no idea what you’ve seen; your description of the problem symptoms doesn’t match our experience with how Notepad++ behaves).

    Other things to look at: show a screenshot Style Configurator > C dialog, so we can see what the Default and User extensions are for your setup. And, if on the version with syntax highlighting, or the version without, Notepad++ shows a language other than C Source File in the status bar, then you will need to show the Style Configurator screenshot for whatever language that says as well.

    BTW: .sc by default is not a known extension in Notepad++, so someone (you or an IT person) must have added it into the User or possibly Default extension list for whatever language it is getting lexed as, to get even the remote version to syntax highlight. (The pre-defined extensions for C and C++ are .c .lex for C and .cpp .cxx .cc .h .hh .hpp .hxx .ino for C++.)

  • How to join a line break with a space?

    12
    0 Votes
    12 Posts
    3k Views
    Сергей РыбинС

    @guy038 Thank you very much, you have been very helpful.
    I manually edit the pictures, I don’t replace everything, but I just click replace, and I check right away.
    Added to your formula: \h*\R(?:\h*\R)(>$|[,|-|—|:]$)*(?=\l)
    Many times saving time.

    Thank you.

  • Batch replacing questions

    4
    0 Votes
    4 Posts
    457 Views
    Alan KilbornA

    @Sanc-Tuary said in Batch replacing questions:

    the \d+ and how / where to use it solved my problem

    I caught you a fish today. Tomorrow, catch your own by reading some of the references cited above.

  • Help why slash changed

    2
    0 Votes
    2 Posts
    220 Views
    EkopalypseE

    @Dew-Debra

    Most likely, this is a problem with the font you are using.
    Check your settings. (Settings->Style Configurator->Global Styles->(Global override/Default Style)

  • I lost open tabs and probably, files! HELP!

    24
    0 Votes
    24 Posts
    41k Views
    Terry RT

    @C-Raghava said in I lost open tabs and probably, files! HELP!:

    I am also facing the same issue, I am using Notepad ++ 5. +.+

    So if what you typed is correct (5.+.+) you are using a seriously old version. Why haven’t you updated? No-one is going to help you on such an old version. The details listed in this post and several like it all refer to much later versions.

    Terry

  • Global word autocompletion for txt files

    3
    0 Votes
    3 Posts
    271 Views
    PeterJonesP

    @Catalin-Soare ,

    You can create an autocompletion file for Normal (plain text) using normal.xml. So if you really want a known list of autocompletions that goes beyond what it learns from the current document, you can use that. (It won’t automatically add to that list, but it’s there it can be used if you want to manually add autocompletions to it)

  • Error 15 loading session file / default.npp-session

    6
    0 Votes
    6 Posts
    562 Views
    Robin CruiseR
    Error 15 when saving files: loading session file...plugins\Config\SessionMgr\sessions\Default.npp-session

    REMEMBER: this happens because you no longer have free space on the HDD and the data can no longer be saved.

  • N++ Not keeping recent files

    8
    0 Votes
    8 Posts
    867 Views
    Fayko_F

    @PeterJones

    Session.xml has a date of 9/24/22 guessing this was around the install date.
    Editing gave me a warning of protected mode on the xml so i took permissions over it for all users.

    this also lead me to find that i didn’t have permissions on the backup folder.

    Things seem to be working as desired now. Idk why my user lost permissions but oh well. Thank you.

  • Search/Find specific Language Syntax ?

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @Serpens66 ,

    I forgot the quotes in the replacement in step 4…

    REPLACE: Decimal\("$0"\)
  • How do I split windows to show 2 files side by side?

    3
    0 Votes
    3 Posts
    44k Views
    Nancy TietzN

    @PeterJones THANKS! I was confused by the term “Move to other View”… I do have the Compare plugin but with very large files (trace files) I found it took a VERY long time to load.
    Thanks for your help!!

  • Given this input, how to have this output?

    4
    0 Votes
    4 Posts
    332 Views
    Pixels PicsP

    @Terry-R Your regex works on my real-world data. As you pointed out, my data don’t have tabs. Thank you very much for your timely solution and reply.

  • Massive replace and enumerate

    3
    0 Votes
    3 Posts
    360 Views
    PeterJonesP

    @Ludwing-Jonathan-Guzman-Bautista said in Massive replace and enumerate:

    any way to do this faster, just increase 1+ on each new item

    Or, if you are willing to use a plugin and have a tiny bit of coding skill, we have a FAQ on doing mathematical replacements (which includes “add one”)

  • Help with codes

    2
    0 Votes
    2 Posts
    175 Views
    Terry RT

    @Wayne said in Help with codes:

    Code for placing a border around a heading <h…>

    You seem to be referring to html code. This is the wrong forum to be asking that on. Even though you may be using Notepad++ (assumption), that does not make this the correct place for your question.

    Terry

  • 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
    9k Views
    Jeshua GuzmanJ

    @guy038 Great thanks!

  • Filtering files for opening with FTP profiles

    2
    0 Votes
    2 Posts
    232 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
    321 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
    303 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