• Match and replace specific word between two tag symbol

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello, @jade-owen,

    I’m a bit perplexed ! Indeed, from your example, it looks as you would change the upper-case string ROOM with the upper-case string SPACE, when within a <div>.......</div> range, only… and NOT the LOCAL string !!

    If it’s really what you want, the regex, below, should do the job, strictly !

    SEARCH (?-is)(<div>.*?LOCAL..-)(.*?)(?=..-.*?</div>)

    REPLACE \1SPACE

    OPTIONS Tick the Wrap around and Regular expression options

    ACTION Click, once, on the Replace All button, or several times on the Replace button

    Best Regards,

    guy038

    P.S. :

    Generally speaking, it’s important to point out that regexes are very dependent of the text they are applying against ! Even a simple additional space character, in a text, can break out matches detection of a well-formed regex !

    So, I advice everyone, which wants a specific search/replacement, to carefully describe :

    The searched text which must be matched

    The replacement text which will be inserted, instead

    Doing this way should help out to build the right regex(es) and assures you to get a quicker solution, too ;-))

  • Bug (?) Window title with Unicode filename shows ???????.??? v7.5.4

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Stephan-Hodges said:

    looks like mine is behaving differrent, the window title shows the symbols but the tab text doesn’t.
    Maybe related to the fact that I’m using Linux/Wine.
    Unfortunately the setting to change the tab text is deactivated.

    As of screenshots, you are right, you can’t attach in the forum but what you can do is to upload
    to image hosters like imgur and use a sysntax like

    ![](https://i.imgur.com/g5lKm4K.png)

    and you get a result like this

    Cheers
    Claudia

  • Notepad++ does not allow a default page orientation

    3
    0 Votes
    3 Posts
    4k Views
    raj66kasR

    There is no page orientation settings at the file level. When printing a file, you can use the printer driver settings to print in the Landscape mode.

  • Will Notepad ++ save a notepad (windows version ) file?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    DaveOnGitHubD

    Thanks for getting back to me. What I want is to use Microsoft Notepad and have Notepad++ save the file every so often. Something caused Windows to shut down and I don’t think it was me. I lost a document that I had not saved for a while. So I’m trying to avoid that in the future.
    I will look at what you have suggested. To be frank though, I have no clue what to disable. As to the 7z format you speak of, I have no idea what you are talking about. I found a download button on the website and clicked it. I clearly have some homework to do. Please stay in touch. I will write when I have a better understanding of the program. Thanks, Dave

  • Crash DSpellCheck.dll

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    chcgC

    Known issue with dspellcheck 1.3.2, use 1.3.4 or later, see https://github.com/Predelnik/DSpellCheck/releases. Notepad++ 7.5.4 should be bundled already with dspellcheck version 1.3.4.

  • Changing police character

    5
    0 Votes
    5 Posts
    2k Views
    Gilles ToubolG

    Thanks that’s perfect.

  • Run a command using custom toolbar button?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Ahu LeeA

    UPDATE

    Solved!

    Please delete this post.

  • Notepad++ Version Standardization request

    Locked
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    6 Posts
    3k Views
    guy038G

    Hello, @laurent-coulon, @peterjones and All,

    Even more simple :

    SEARCH \b\d{4}\b OR \<\d{4}\>

    REPLACE 0$0

    Just use the $0 syntax, in replacement, which always represents the entire match. So, it avoids to add parentheses in order to store the match at group 1 :-)

    Cheers,

    guy038

  • 0 Votes
    1 Posts
    731 Views
    No one has replied
  • 1 Votes
    1 Posts
    1k Views
    No one has replied
  • Add more style token for highlighting

    Locked
    7
    0 Votes
    7 Posts
    15k Views
    chcgC

    Maybe you want to have a look at https://sourceforge.net/projects/analyseplugin/, also it helps you in logfile analysis just for a single file at a time.

  • 2 Votes
    13 Posts
    5k Views
    Mikhail VM

    @Scott-Sumner said:

    @Mikhail-V said:

    …read the current keyboard layout. This will require some WinAPI calls to the system. Probably it is possible, but I don’t know how to do it from Pythonscript.

    For purely educational purposes, here’s a way:

    import ctypes buff = ctypes.create_unicode_buffer(1024) ctypes.windll.user32.GetKeyboardLayoutNameW(buff) console.write(buff.value)

    This sort of works, but on windows 10 there is same issue as with AHK - it detects the layout
    only once when the application starts, but when I switch the layout and repeat the script -
    it returns same code value regardless of current layout.

  • Changing Font Size

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    Scott SumnerS

    @Wynford-Junior-Thomas

    My font size has changed somehow

    Just theorizing on what might have happened: Perhaps you had the Ctrl key held down (accidentally) while you scrolled the mouse wheel? In case you didn’t know, this changes the “zoom” level that @Claudia-Frank mentioned…

  • 0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @George-Elam

    Settings->StyleConfigurator->Global Styles->Inactive tabs->change foreground color

    Cheers
    Claudia

  • Problem with some HTML files

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Pierre-Panissod

    do you have additional infos like where those files are stored,
    which npp version do you use (debug-info from ? menu)?
    Does it mean that two html files, saved in the same directory,
    behave different when on contains the line you mentioned
    but identical otherwise?

    Cheers
    Claudia

  • Explorer Context don't work in 32bit ++

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Robert-Hays

    Sure? Because the reason why it isn’t working is the elevation level Microsoft introduced
    some time ago.

    If you run your npp as administrator but the explorer process runs as normal or
    different user then it shouldn’t work - in both versions.

    If both explorer and npp run under on the same level, e.g. both started as administrator,
    then it should work -> 32 as well as on 64 bit

    Cheers
    Claudia

  • Bug - Document Map panel in Visual Basic language

    Locked
    1
    0 Votes
    1 Posts
    925 Views
    No one has replied
  • Feature request: separate tabs for "Find in Files" and "Replace in Files"

    Locked
    12
    1 Votes
    12 Posts
    4k Views
    AZJIO AZJIOA

    I adhere to the safety criterion:

    Do not press what you do not know. Before you press make a copy (always) Allow yourself to test for things that do not have value
  • Feature Request: Remember search string for each "View"

    Locked
    1
    1 Votes
    1 Posts
    819 Views
    No one has replied