Community
    • Login

    NOTEPAD++ does not complete the REPLACE command.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 212 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Derflieger99D
      Derflieger99
      last edited by

      Hi,
      in a text (10MB in size), unwanted characters are to be replaced or deleted by a script. Attached is my Notepad++ info and two examples of my script.

      The first script replaces characters in hex mode. e.g. replace 9A with DC. In the second script, whole words are to be replaced. A script always begins with “ADR 000000” so that it is processed from the beginning of the text.

      Since the creation of the “errors” in the original text does not follow any special rules, I have to adapt with the script to change the text on my terms. This is not a problem and works very well even with small scripts of 2 to 5 lines.

      However, my text to be edited is over 140,000 lines long. I adapted the script with about 90 lines.

      It looks as if only 2-3 changes are made at a time, and then further changes are made with a new run (Ctrl. + F9).
      This is of course annoying insofar as a one-time run should actually carry out all programmed changes.

      Anyone know this symptom?

      Here is an excerpt from my SCRIPT

      REPLACEALL 9A BY DC
      REPLACEALL 45 34 BY 61 65
      REPLACEALL 94 BY F6
      REPLACEALL 61 F9 BY 61 65
      REPLACEALL EF BY 27
      REPLACEALL 84 BY E4
      REPLACEALL E1 BY DF
      REPLACEALL 81 BY FC

      REPLACEALLASC Aussen by Außen
      REPLACEALLASC aussen by außen
      REPLACEALLASC Ausser by Außer
      REPLACEALLASC ausser by außer
      REPLACEALLASC Schliess by Schließ
      REPLACEALLASC schliess by schließ
      REPLACEALLASC schlüßel by Schlüssel
      REPLACEALLASC schlüssel by Schlüssel

      Notepad++ v8.4.9 (64-bit)
      Build time : Jan 27 2023 - 03:11:16
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 11 (64-bit)
      OS Version : 21H2
      OS Build : 22000.1574
      Current ANSI codepage : 1252
      Plugins :
      AutoSave (1.6.1)
      BigFiles (0.1.3)
      CodeAlignmentNpp (14.1.107)
      ComparePlugin (2.0.2)
      CSVLint (0.4.6.2)
      Explorer (1.9.5)
      HexEditor (0.9.12)
      HugeFiles (0.1.1)
      LocationNavigate (0.4.8.1)
      Merge files in one (1.2)
      mimeTools (2.9)
      NppConverter (4.5)
      NppEditorConfig (0.4)
      NppExport (0.4)
      NppFTP (0.29.12)
      NppSnippets (1.7.1)
      PreviewHTML (1.3.2)
      SessionMgr (1.4.4)
      XMLTools (3.1.1.13)

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Derflieger99
        last edited by

        @Derflieger99 ,

        Notepad++ has no builtin scripting that uses syntax like you showed. Are you using a scripting plugin or some other plugin that has its own notion of “scripts”? Or are you running that script through some external language/tool? or was the syntax you showed really just your shorthand for Notepad++ macro language which is stored as XML?

        then further changes are made with a new run (Ctrl. + F9).

        Ctrl+F9 isn’t mapped to anything in a default instance of Notepad++. That again makes me think that you have a plugin that is doing this for you. Unfortunately, you’ve got a long list of plugins, but none of the names are for any of the scripting languages I know about – if you are using a plugin for this change, please tell us specifically which plugin is giving you the scripting language you showed.

        1 Reply Last reply Reply Quote 1
        • Klaus TrybulK
          Klaus Trybul
          last edited by

          Thanks for the reply.
          I am going to check this.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors