Community
    • Login
    1. Home
    2. Help wanted · · · – – – · · ·
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • rodica FR

      Delete the entire content of all files with less than 100 words

      Watching Ignoring Scheduled Pinned Locked Moved
      25
      0 Votes
      25 Posts
      1k Views
      rodica FR

      @guy038 said in Delete the entire content of all files with less than 100 words:

      \A[^\w]*(?:\w+[^\w]+){0,4}(?:\w+[^\w]*)?\z

      My joy is that, thanks to my regex, an alternative method has been discovered, quite good.

      thank you @guy038

    • Susanne SengerS

      Notepad++ link in SendTo Folder does not work any more

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      417 Views
      Alan KilbornA

      @susanne-senger said in Notepad++ link in SendTo Folder does not work any more:

      if I highlight some files (up to 8)

      Did you try with just ONE file? Does that work?
      (refer to Peter’s post where he says You also mentioned “a bunch of files”… which you clearly didn’t read…)

    • ArulrajA

      Notepad++ font

      Watching Ignoring Scheduled Pinned Locked Moved how to fix
      2
      0 Votes
      2 Posts
      204 Views
      dfs-D

      Could you provide a screenshot illustrating the issue, so we can see where the cut-off happens?

      Do you have DirectWrite active in the Notepad++ preferences?

    • Drawing with Jakob DamD

      Theme creation: How to choose separate color for...

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      385 Views
      PeterJonesP

      @drawing-with-jakob-dam said in Theme creation: How to choose separate color for...:

      I’ve tried to copy the line to the HTML section and given it a unique styleID, but it didn’t work.

      Unfortunately, you cannot just arbitrarily copy XML from one language’s settings to another. Well, you can, but it won’t do anything.

      Each language’s lexer has its own bit of code that decides what will and what won’t be syntax highlighted; it reads the XML configuration for that language, and on the StyleID’s that it recognizes, it applies the styling defined by that line of XML to the sequences that match what that lexer is coded to match for that StyleID… but if you define a StyleID that the lexer doesn’t recognize, it won’t do anything with that definition, because there is no line of code in the lexer that does anything with that StyleID.

    • Piotr WiśniewskiP

      Window view problem

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      954 Views
      Cristina StoicaC

      @madzilla You are completely right, it also seems to happen on my end whenever I am using Ringcentral BlueJeans app, no matter if I screenshare or not. Rebooting does the trick.

    • Ivan K 0I

      Change a certain line in several documents with command/variables

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      854 Views
      PeterJonesP

      @ivan-k-0 said in Change a certain line in several documents with command/variables:

      Is there any command to execute to change this line for each document?

      It’s called regular expression search and replace.

      Your method of describing your data is rather confusing. I don’t know whether those digits really prefix each line, or if you are just numbering the lines, or numbering the documents that contain that as line#6. Using the Template for Search/Replace questions mentioned below would have helped you communicate more clearly.

      But I can come up with a solution that is agnostic of that prefix anyway.

      If you want to replace any json ("edition": ###,) line with json ( "external_url":"https://example.com/?token_id=###",) then you can use
      FIND = json \("edition": (\d+),\)
      REPLACE = json \( "external_url":"https://example.com/?token_id=${1}",\)
      SEARCH MODE = Regular Expression

      If you have many such lines in the same file, but only want to replace the one on line 6, then change the FIND to \A(?-s:^.*$\R){5}\K^json \("edition": (\d+),\), which looks for the beginning of the file and 5 lines, then restarts the match.

      If you allow other characters before the json prefix on line 6, you might have to tweak what comes after the \K to allow that. I will leave that as an exercise for the reader; give it a try using the docs below, and if you cannot figure it out, ask for hints.

      ----

      Useful References Please Read Before Posting Template for Search/Replace Questions FAQ: Where to find regular expressions (regex) documentation Notepad++ Online User Manual: Searching/Regex
    • DomWeskerD

      Window layout problems after update

      Watching Ignoring Scheduled Pinned Locked Moved
      21
      0 Votes
      21 Posts
      5k Views
      Reinier van RooyenR

      @domwesker I know it’s a year later, but if I found this in a google search so can someone else. I just want to confirm the later replies here. This problem seem to stem from using Slack. In my case I had the go into task manager and stop ALL(sort by name since they tend to play hide and seek) Slack processes. Then simply close NP++ and re-open.

    • Henry MosleyH

      Need help restoring records

      Watching Ignoring Scheduled Pinned Locked Moved restoring recovery recovery backup
      2
      0 Votes
      2 Posts
      213 Views
      Neil SchipperN

      @henry-mosley See this.

    • Marcelo FinkielszteinM

      =lost settings after upgrading to 8.2.1 32bit

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      763 Views
      Marcelo FinkielszteinM

      @peterjones ,
      THANK YOU for the reply.
      Now, every time I upgrade, I am careful to empty the checkbox on the last dialog that would let me “open notepad++”. I just ask the install to finish without re-opening the app.
      With this workaround is enough.

      Thanks again.
      Marcelo

    • Omar SalamahO

      Insert Mode Help

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      508 Views
      guy038G

      Hello, @omar-salamah, @peterjones and All,

      @omar-salamah :

      Actually, here is your goal :

      You have a first File1.xml file containing N pure blank lines

      You have a second File2.xml file, below, containing M non-empty lines, with M <= N

      <nominal>8</nominal> <min>4</min> <nominal>3</nominal> <min>1</min> <nominal>2</nominal> <min>1</min> <nominal>0</nominal> <min>0</min> <nominal>0</nominal> <min>0</min> <nominal>5</nominal> <min>4</min> <nominal>0</nominal> <min>0</min> <nominal>0</nominal> <min>0</min> <nominal>3</nominal> <min>1</min> <nominal>3</nominal> <min>1</min> <nominal>2</nominal> <min>1</min> <nominal>10</nominal> <min>8</min> <nominal>0</nominal> <min>0</min> <nominal>3</nominal> <min>1</min> <nominal>0</nominal>

      And each non-empty line of File2.xml must replace the next pure empty line of File1.xml !

      The @peterjones’s python script, of course, works correctly using the minimal layout of File2.xml, too

      Best Regards,

      guy038

    • Neculai I. FantanaruN

      Regex: Add string in front of paragraph and after it

      Watching Ignoring Scheduled Pinned Locked Moved
      9
      0 Votes
      9 Posts
      4k Views
      Robin CruiseR

      @PeterJones thanks. I understand now the DECODE.

      Notepad++ -> Menu -> Plugins -> Mime Tools -> Base64 Decode

      Thanks for solution @guy038

    • dfs-D

      Function List weirdness and sorting

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      423 Views
      dfs-D

      Thank you for your insight. I added a PR for my other “wishes”.

    • Myles CarpenetoM

      8.3.3 UPDATE

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      288 Views
      Neil SchipperN

      @myles-carpeneto You might benefit from this.

    • David FindlayD

      Can no longer paste onto a screen.

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      276 Views
      David FindlayD

      @peterjones
      Thank you.
      Will try that.

    • Neculai I. FantanaruN

      Find those html tags that contain only 3 words (with regex)

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      223 Views
      Neculai I. FantanaruN

      @neculai-i-fantanaru

      Try this:

      <p class="pintem">(?:\W*\w+){3}\W*</p>

    • Redeye123R

      how to run my python script using (pythonscript for npp) to multiple opened files

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      1 Votes
      5 Posts
      961 Views
      Redeye123R

      @mpheath said in how to run my python script using (pythonscript for npp) to multiple opened files:

      from Npp import *

      def forEachFile():
      for file in notepad.getFiles():
      notepad.activateBufferID(file[1])
      notepad.getCurrentFilename()
      editor.rereplace(‘unit_reward_per_km: ([0-9]+)’, times_2)
      notepad.save()

      def times_2(m):
      return 'unit_reward_per_km: ’ + str(int(m.group(1)) * 2)

      forEachFile()

      Yea i copied alot to help myself out and it worked in one so i had to be close the printname was just something that was in a piece of code :P and forgot to remove it when i posted it here . Thank you !

    • Alfred VachrisA

      I use Notepadd++ as a great way to copy text into Excel VBA. However I notice that the underscore character gets converted to strange character

      Watching Ignoring Scheduled Pinned Locked Moved
      21
      0 Votes
      21 Posts
      3k Views
      Lycan ThropeL

      @peterjones ,

      Learning something every day. :)

    • Niels BiggerN

      How to install multi language DSpellCheck based on native Win lib

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      1k Views
      Niels_BiggerN

      @niels_bigger
      I am happy now after adding the languages via MS Office :-)
      43445af2-41af-446d-9c08-b7e35bd6a12c-image.png
      e8c71278-cae6-4038-8205-d0eeeeae313a-image.png

    • Alij2022A

      Add a new text

      Watching Ignoring Scheduled Pinned Locked Moved search replace filter
      8
      0 Votes
      8 Posts
      2k Views
      Alan KilbornA

      @alij2022 said in Add a new text:

      is there a way to indent the line as well like making it appear on the same line as the first one, with indentation?

      Sure, you can add in some spaces or tabs after the \r\n; for a tab character you can use \t.

    • Chris Tanguay 0C

      Anything to add up selected numbers? (or plugin suggestion)

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      3k Views
      Alan KilbornA

      This was turned into a real issue HERE.

      I posted a PythonScript solution there.

    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors