• Removing NUL characters

    2
    0 Votes
    2 Posts
    9k Views
  • Recovering unsaved file

    Locked
    2
    0 Votes
    2 Posts
    11k Views
    Tin KosicT

    I realized why I don’t have those folders, it’s because I use the portable version of N++. There’s a backup folder in the N++ folder, but there’s only one much older file in there.

    Is there ANY way I can get this back?

  • Add text at the end of line only i line starts with specific word? Regex

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    guy038G

    Hi, @chris-adamos,

    No problem with regexes, indeed ! So :

    Get back to the very beginning of your file ( Ctrl + Origin )

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-si)^DATA.+

    REPLACE $0 "p:120 - 4 beats" with a space character, right after $0

    Select the regular expression search mode

    Click, once, on the Replace All button OR several times on the Replace button

    Notes :

    The first part, of the search, (?-is) are modifiers, which ensure you that :

    The search will be performed, in a sensitive way ( = non-insensitive )

    The dot special character means a single standard character, only ( not an End of Line char. )

    Then, the ^DATA.+ part searches for the exact string DATA, at beginning of line, followed by the longest, non-empty range of any standard character

    In replacement, the $0 syntax, just rewrites the entire searched string

    Then the "p:120 - 4 beats" string, preceded with a space character, is simply added, to each matched line

    An other formulation could be :

    SEARCH (?-si)^DATA.+\K

    REPLACE \x20"p:120 - 4 beats"

    Notes :

    The \K syntax, at the end of the regex, forces the regex engine to forget everything matched, before \K. So, it only matches the zero length string, at the end of each matched line

    In replacement, the string \x20"p:120 - 4 beats" is, therefore, added, at the end of each matched line

    Note that \x20 is, simply, the hexadecimal form of the space character

    IMPORTANT : Due to the special \K syntax, you must use, exclusively, the Replace All button !

    Best Regards,

    guy038

  • Key names?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • File tabs not movable with mouse

    3
    0 Votes
    3 Posts
    2k Views
    AngryGamerA

    @Daniel-Scholten The next version of NPP has moveable tabs in multiline. You can grab a snapshot build here if you’d like to use it now.

  • Auto guide for CSS properties

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    Paul GanP

    ohh okay thank you. then it must be a different software that person is using. i think its called Brackets for mac. will brackets be able to do that?

  • Help manual or Web site

    Locked
    7
    0 Votes
    7 Posts
    7k Views
    decodermanD

    I just checked an older device, the folder is from 2013 but NPP is the current version.
    Since the docu is so old an no one maintains it, it is likely that @donho no longer includes it in the newer version releases.

    This could be a project for an enthusiast…

  • Latest notepad ++ version go back to top after scrolling

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Running HTML Scripts

    Locked
    3
  • python script running

    Locked
    2
  • Accidentally "Reload from Disk"

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Marc OvermanM

    Thanks!

  • Changing color of PHP constants

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Background Image

    Locked
    3
    -1 Votes
    3 Posts
    4k Views
    Richard PackR

    That is an excellent point, my apologies.

  • Basic Coding Question

    Locked
    2
    -1 Votes
    2 Posts
    1k Views
    PeterJonesP

    This is a forum for the editor Notepad++, not whatever you happen to be using the editor for.

    However, that’s an easy one: stop using smart quotes. Changing your code to the following worked for me.

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Introduction to CSS</title> <style type="text/css"> p { color: red; } </style> </head> <body> <p> Style Me!</p> <p> Style Me!</p> </body> </html>
  • Displaying only lines that start with or contain -keyword-

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    chcgC

    Seems you could do a search on the whole active file to your pattern and then look just at the search result window. Which has a link back to the origin if you click that line.

  • 0 Votes
    2 Posts
    1k Views
    David ShikoD

    I’m finded, need choose html, not js :)

  • Notepad++ Python Script - Find files containing string at specific line

    13
    0 Votes
    13 Posts
    8k Views
    Scott SumnerS

    @toxpal

    OK, so you have to read the documentation to see how these “editor” functions work. See Plugins -> Pythonscript -> Context-Help.

    If you do this, you will see that editor.findText() returns a value indicating where a match did (or didn’t) occur.

    Does this make sense?

    Same thing applies to editor.getTextLength()…except in that case you actually have to spell it correctly (hint: case matters)…

  • Regex help

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Anthony BouttellA

    The answer is:

    Find what: [^a-z] replace with:
  • Some Questions about the 'Find' dialog

    14
    0 Votes
    14 Posts
    8k Views
    Rajkumar TamangR

    I have this problem, could you please help me explain this link: https://notepad-plus-plus.org/community/topic/13378/run-commands-issue/8 during run compilation, error is shown can’t fix it can you please help me. I have stopped working as i am not able to run in chrome . specification are windows 10 64bit

  • Troubles with open on Windows 10

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    chcgC

    Could you provide ?->Debug info data please. Similar to mine:

    Notepad++ v7.3.3 (32-bit)
    Build time : Mar 8 2017 - 03:37:37
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)