• 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    20 Posts
    9k Views
    Jos MaasJ

    @guy038
    Hello, Guy,
    In a reply of about a montha ago, you wrote “Be aware that, UNLIKE script languages, as Python, or Lua, regexes CANNOT store all successive values of the groups !”.
    The good news is now that I have a set of working regexes for some sorts of indexes. I would go further now, but It turned out, that the amount of characters that a regex can handle is too small for my goal. So I think I have to use python to do the trick. I know a bit of programming (I learned the basics of algol and fortran some 50 years ago), but I did not do that job for years, so I fear that it will take some time before I am able to make working python-scripts. Therefor, I would like to ask you some questions so I don’t have to read lots of documentaries and forum-discussions which might be irrelevant for my limited goal.

    Can named groups from a regex used in write-statements? If Yes, could you give an clarifying example? does python have limitations in the amount of characters in regexes?

    Thanks in advance, best regards, Jos

  • Notepad does not open good file content

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    gstaviG

    Probably related to this.
    Porting 32 bit OS to 64 bit while maintaining compatability is tricky.

  • Typographic alignment..

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • v7.5.1 Setup Error: Langs.mode.xml

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Find exact lines

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @Gabriel-Clifton

    Not too hard, try this:

    Find-what zone: Word\x20$
    Replace-with zone: Word,
    Search-mode: Regular-expression

    You can use a plain old space instead of the \x20 but I like to use \x20 here on this site because it is more visible. Either works when you are actually doing it.

    So in the spirit of learning something, the $ is the key element here. It basically means end-of-line…so you are searching for W…o…r…d…space…followed by nothing else on the line. Replacement affects only those cases where a search match occurred, obviously.

  • 0 Votes
    5 Posts
    2k Views
    Guido MakorG

    Thanks @cmeriaux and @Scott-Sumner240 for the upvotes. I guess that’s adding to my ‘reputation’, right? Much appreciated!

  • SFTP connection to Google Cloud Compute Instance not working

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Ver 7.5.1 32 bit English .. is not in English

    Locked
    1
    0 Votes
    1 Posts
    994 Views
    No one has replied
  • Not Working Find Files ?? |Notepad++ 7.5

    6
    0 Votes
    6 Posts
    3k Views
    cmeriauxC

    @Sadut-Bandel you may try to do a fresh install. Sometimes, configuration files are corrupted

  • Problem loading huge text file

    6
    0 Votes
    6 Posts
    6k Views
    NippurDeLagashN

    @chcg
    It is an XML file. It is actually a report generated by a disk usage tool, which I run on a folder having about 80.000 files, and it lists each file with full path, size, etc.
    This report has a size of “only” 18 MB, but Notepad++ uses 67 MB to load it.

  • Comparisons gone wrong

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    YaronY

    Hello Ruby,

    Are you using Notepad++ v7.5.1 and Compare Plugin v2.0 (by Pavel Nedev)?
    If you are, could you specify the exact steps to reproduce the issue?

    Best regards.

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Compile in Pascal

    Locked
    2
    0 Votes
    2 Posts
    9k Views
    PeterJonesP

    This is not a coding help forum. So, assuming you knew that, and are asking how to help automate the process of compiling and running from within Notepad++…

    There are multiple ways to automate tasks like that. In the examples below, you will have to replace the “c:\path\to\pascal\compiler.exe” with the appropriate compiler and supply appropriate command-line arguments if it requires more than just the source code.

    Using Notepad++ Run > Run, type a command similar to

    cmd /k "c:\path\to\pascal\compiler.exe ^"$(FULL_CURRENT_PATH)^" && ^"$(CURRENT_DIRECTORY)\$(NAME_PART).exe^""

    You can hit the SAVE button to put it in the Macro menu, and optionally give it a keyboard shortcut

    Using the NppExec plugin, there are a few ways:

    Output to an “NppExec Console” sub-window inside the main Notepad++ window:

    Select Plugins > NppExec > Execute..., and use the command

    cd "$(CURRENT_DIRECTORY)" "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)" "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

    Output to an “NppExec Console” sub-window inside the main Notepad++ window, keeping a cmd.exe prompt active in that window:

    Select Plugins > NppExec > Execute..., and use the command

    cd "$(CURRENT_DIRECTORY)" "c:\path\to\pascal\compiler.exe" "$(FULL_CURRENT_PATH)" cmd /k "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

    Output to a separate cmd.exe window:

    Select Plugins > NppExec > Execute..., and use the command

    cd "$(CURRENT_DIRECTORY)" npp_run cmd /k "c:\path\to\pascal\compiler.exe ^"$(FULL_CURRENT_PATH)^" && ^"$(CURRENT_DIRECTORY)\$(NAME_PART).exe^""

    There’s probably a way to do it with the PythonScript plugin as well

  • Solved Problem with Notepad++ taking over a minute to launch.

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Broken (changed) UI after the first update

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Cogito Ergo SumC

    @MaDill
    Thank you very much! Your advice helped me to change UI back. But there is another problem - plugins do not work (their UI do not appear at all as I click plugins to be shown). I suppose I should to create a new topic with this problem?

  • Encoding 1251

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem editing using remote VNC connection

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Gary MaddoxG

    In reply to my own problem: I just installed v.7.4.2 and it seems to be working better.
    I noticed several views to this topic. Unless I report back with something negative, this could be solved.

    G.

  • Files won't save with .txt extension

    11
    0 Votes
    11 Posts
    26k Views
    Dave HatpecD

    This is nonsense to call forcing a user to type “.txt” every time they save a new file “modern”… Windows 7 and 10 Explorer by default doesn’t even show the file extension; how does forcing a user to type it sync up with that?

    By default, a new Notepad++ user will save a text file just like they save it in Notepad, then next time go to open the file and Windows will ask them which program they want to open it in… even if they choose Notepad++, they can’t set it as a default because there’s no file extension!

    Did Microsoft determine this behavior as “modern”? If so, I don’t know why they’re contradicting themselves for the “modern” user. If not, I don’t know why Notepad++ is contradicting sense.

  • Remove CRLF Not Preceded by a Space

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Wayne ApratoW

    Thanks Scott. Much appreciated.