• help on a formula, please?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G
    Hello Harry, I’m the one, who posted this reply to Clearinghouse Forsale, three months ago, about ! Refer to the link below : https://notepad-plus-plus.org/community/topic/10848/need-some-help-with-find-and-replace/3 And indeed, reading again this old post, I just realize that I didn’t pay enough attention to the line : now as you see, i have alot of lines that state begin…type tree…age ##### end So, the replacement should occur, ONLY IF the lines contain the word Tree, before the word Age ! In that case, just change the search regex as : Tree .* Age \K.+(?= END$) REMARKS : There a space, BEFORE and AFTER the words Tree and Age, and a space BEFORE the last word END ! I also added the $ symbol, to be sure that we search for the word END, at the very end of each line NOTES : This time, the search regex is looking, FIRST, for any text, in a same line, between a first occurrence of the word Tree and a last occurrence of the word Age ( Tree .* Age ) Due to the \K form, this previous match is, then, forgotten by the regex engine Next, it tries to match a non empty list of characters (.+) But, ONLY IF that list is followed with a space and the word END, which ends the current line ( (?= END$) ). So it selects the exact number, only, between the word Age and the keyword END ! Best Regards, guy038
  • Pages on this forum load very slowly

    11
    0 Votes
    11 Posts
    6k Views
    YaronY
    The problem seems to have been fixed. Thank you all.
  • Setting Default File Extensions

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    George ChristovichG
    Thanks Claudia, It didn’t take long to learn you were the go-to guru around here. George
  • .LOG timestamp functionality

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    Hello @Barry-Parr, I can think of a python script which might be able to do this. If you want to go this way, let me know what exactly needs to be done. Do you really want every txt file to be checked if first line is .LOG? Should it log the timestamp every time you open the file or every time you switch to the file? Or do you want a script which will insert the timestamp when using a shortcut? Cheers Claudia
  • 0 Votes
    4 Posts
    3k Views
    Claudia FrankC
    @Patrick-Moore, I just tried it, Windows 10 x64 npp 6.8.7 installed. Clicked on Update and I was offered npp 6.8.8. Installed it and yes, it is npp 6.8.8. So I assume that you just updated to 6.9 in a situation/timeslot where it was possible but as of now it seems it is not possible yet. Cheers Claudia
  • Iike 6.9 - but it changes auto-complete behaviour

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello @Gerhard-Auinger, I do have quote and double quote completion. Maybe try uncheck it, restart npp, check it again or check config.xml <GUIConfig name="auto-insert" parentheses="yes" brackets="yes" curlyBrackets="yes" quotes="yes" doubleQuotes="yes" htmlXmlTag="no" /> In regards to html5 tag main, if using html lexer <main> gets colored in blue. Cheers Claudia
  • Notepad++ / NppFTP does not work with USING PRIVATE KEY FILE

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    Claudia FrankC
    Hello @Jae-Hun-Daniel-Hwang, I don’t have an environment to test it, so I was checking NppFTP issues and there has been a similar issue reported with a possible solution reported at stackoverflow. Cheers Claudia
  • 6.9 Folder as Workspace Sorting Options

    Locked
    2
    0 Votes
    2 Posts
    9k Views
    Claudia FrankC
    Hello @Rich-Goldman, jfyi that it has been addressed. Cheers Claudia
  • Document Switcher gone after 6.9 update

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Patrick MooreP
    Settings menu > Preferences > General Place checkmark next to “Show” option in “Document List Panel” group beneath “Toolbar” group. This should restore the Doc Switcher panel.
  • Auto insert broken?

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    guy038G
    Hello Steve, Claudia and All, May be an option to enable/disable the “intelligent” auto-insert feature ( introduced since N++ 6.8.4 ) would be judicious, in the Settings - Preferences - Auto-Completion - Auto-Insert area ? So, when this option is UNCHECKED, we would find, again, the old auto-insert behaviour ! I suppose that, by-passing the part of code that produces the new behaviour, in order to get the old automatic auto-insert behaviour, shouldn’t be too difficult to code, anyway ! Of course, it’s up to Don Ho and/or the devs, which coded the auto-insert feature Best Regards, guy038
  • Function list

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Christian WistbergC
    Oh my god thank you so much! I tore my hair for a couple of hours! I’m bald now but at least I have a working function list in Lua :) Thanks again!
  • Jump Srolling When 'Hide Lines' Activated, how to handle that?

    3
    0 Votes
    3 Posts
    2k Views
    Andyra WibisonoA
    I did not use any plugins. My OS windows 7 and now I am using npp 6.8.8, and this problem still occurs in the latest version even. If I hide a lot of lines, scroll leap will occur when the cursor is placed under the hide lines area.
  • Dropdown lists

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Claudia FrankC
    Hello @Endie-Black, what you are referring to is called folding. This is nomally done by the lexer of a programming language like c, python, lua etc… If the text you have isn’t popular code language, then it might be possible to define a user defined language (UDL) to make this happen but therefore we need to see how this text looks like to find some kind of pattern. Cheers Claudia
  • [Feature request] and help with Find and replace

    9
    0 Votes
    9 Posts
    6k Views
    Claudia FrankC
    Well my first editor was ISPF and NO, I’m not that old. ;-) But my answer to the “why do the old programmers not miss my feature requests” would be, we are all individuals, some like it that way others don’t. Cheers Claudia
  • Problem understanding the source code.

    Locked beginner sourcecode
    3
    0 Votes
    3 Posts
    3k Views
    Scott SumnerS
    If you can’t find main() on your own, I don’t have high hopes for you understanding the source code. :)
  • Search within multiple folders

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    @Shashank-Agrawal Afaik, neither npp natively nor a plugin has such functionality. And recording a macro, must say I didn’t try it, would mean that you’re always searching within the same directories. Cheers Claudia
  • Does notepad++ recognize data-toggle, data-target and aria-expanded?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Christopher RiC
    ok, I did an error in the code.
  • Automatic syntax highlighting for Python

    python highlighting syntax
    4
    0 Votes
    4 Posts
    8k Views
    Claudia FrankC
    @Marcell-Lévai oh, I see, that could simply mean that this theme hasn’t done any python styling. Which theme did you use, maybe it’s easier to modify the theme than to try to reconfigure the default theme. Normally you would load the theme, goto Settings->Style Configurator->select the language and set the styles. Cheers Claudia
  • Class range regex in function list

    function list
    10
    0 Votes
    10 Posts
    7k Views
    guy038G
    Hello Matt, Indeed, the way Claudia wrote your parser, as you noticed, is the right syntax. Just refer to the sections Class parser or Mix parser, of the article below : https://notepad-plus-plus.org/features/function-list.html Best Regards guy038
  • CTRL + Shift + T not copying current line to clipboard

    4
    0 Votes
    4 Posts
    6k Views
    Ruben van den BergR
    @PeterCJ-AtWork sorry for my late response, I took some days off. You suggestion allowed me to resolve the problem. Although I couldn’t delete the CTRL SHIFT T shortcut for reopening closed files (greyed out), I remapped it onto some weird key combination that I’ll never use. Thanks a lot for your help!!