• how to preview the html file

    11
    0 Votes
    11 Posts
    51k Views
    Alan KilbornA

    Also note that for this to work you have to have an actual file – no folks, something like new 4, even if you’ve set its Language to html, isn’t going to cut it. Hit the actual Save on it, give it a real name (ending in e.g. .html) on your disk.

    Rue the day when Don introduced this “new X” concept (and making it worse: with auto-remembering these “files” over runs of N++). What seemed like a good idea in 2003…hmmm.

  • Сreation of .bak files

    3
    0 Votes
    3 Posts
    906 Views
    PeterJonesP

    @VAVoices ,

    That shouldn’t change without you intentionally changing the setting.

    Recently, there was another user who discovered that “mysteriously changing settings” were caused because they had two different copies of Notepad++ installed with different config files, and sometimes one was run and sometimes the other. You might want to check for multiple copies of notepad++.exe on your computer.

    The other thing I see is that you are running in Admin mode in your screenshot: it may be that in admin mode, Notepad++ is able to write the config files when it exits, but if you run in non-Admin mode that the user you are running as does not have write permission to the appropriate config.xml, so it cannot save the settings, so the next time you run, it has forgotten that you don’t want that option on.

    So, if you don’t have two copies of Notepad++, I would suggest looking into permissions of %AppData%\Notepad++\ directory and the files inside. You might find it easier to exit all copies of Notepad++, then use Windows Explorer to go into %AppData%\, and rename Notepad++ folder (maybe to Notepad++.old). Then re-run Notepad++, making sure it is not run-as-admin; this will recreate the %AppData%\Notepad++\ folder and all the critical configuration files that belong there, with everything set back to defaults (and the default for .bak is off, which is what you want), and the permissions should be right for your normal user to be able to save changes to the Notepad++ configuration when it exits.

  • I think it needs a fix for "Follow current doc".

    8
    0 Votes
    8 Posts
    692 Views
    Alan KilbornA

    @RedBlue-Writer said in I think it needs a fix for “Follow current doc”.:

    @Alan-Kilborn No. I wanted to see the path of the current document by invoking “Find in Files” using “Shift+Ctrl+f” for a specific text. I also tried it in the menu, but it doesn’t work normally either. Thank you.

    I’m mystified by why it doesn’t seem to be working for you; sorry. :-(

  • What is this horrible print dialog in windows 11?

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Daniel-Essin ,

    A quick web search (using The Search Engine That Knows All) gives me this: https://www.winhelponline.com/blog/restore-legacy-print-dialog-windows-11/

    According to that article, all classic win32 apps were switched to that dialog in Win 11 22H2.

    That article does describe a way they think you can get back the old dialog. Note that it’s a Windows-OS issue, not something specific to Notepad++, so any further discussion would be better suited at a different forum (maybe one made up of OS Super Users, or one specifically for your OS).

  • Other Area

    3
    0 Votes
    3 Posts
    276 Views
  • Prompt for save if NPP open when Win shutdown

    19
    1 Votes
    19 Posts
    2k Views
    Javier AlarciaJ

    @xomx Thank you! For the first time in almost 10 years using NPP, I was going to rollback and disable updating. Very very annoying feature.

  • delete entries on find&replace

    3
    0 Votes
    3 Posts
    190 Views
    cisco779kC

    oh yes. very easy! (if you are how to do it)
    thanks for your reply

  • Keeps Lossing My Tabs

    2
    0 Votes
    2 Posts
    164 Views
    EkopalypseE

    @Douglas-Ison

    Most errors can be fixed if you know exactly how they occur.
    Do you have more information, e.g. what your configuration looks like and if the tabs that are not available after the restart have something in common, e.g. that they are unsaved data or data on a network drive or …?
    At the moment it’s actually more likely that you have something wrong on your side, because I’ve been using this feature for years and I’ve never seen this problem.

  • Search with quantifier failed

    19
    0 Votes
    19 Posts
    1k Views
    datatraveller1D

    @PeterJones Thank you very much indeed!

  • Sort by access time in Window menu.

    5
    0 Votes
    5 Posts
    424 Views
  • Lose Undo Ability Warning

    3
    0 Votes
    3 Posts
    214 Views
    datatraveller1D

    Hi @PeterJones Thank you very much!

    I think you are right it must have something to do with encoding.

    If you, as an English language expert, can confirm the typo (“can not” instead of the correct “cannot”), should I open an issue? I suspect there are more cases where “can not” is hidden in messages instead of the correct “cannot”.

  • functionlist problem

    22
    0 Votes
    22 Posts
    2k Views
    PeterJonesP

    @swegmike said in functionlist problem:

    Is there a way to have the functionlist show multiple lines

    Nope

    Or where the regexp can manipulate the multiline into one for the functionlist to display it completely

    I believe the manual explicitly stated that the functionalist regex cannot change the text; it is a match-only expression

  • 2 Votes
    11 Posts
    498 Views
    swegmikeS

    @PeterJones I’ll need to think about what you wrote.

    However, this is why I was using this particular reqexp based on the help from reg101 tester website. (see their help explanation below).
    This seemed to satisfy an If statement true/false condition. For the no part, I was matching another word to see how it worked with the intent of changing this to empty. Then my named group “COND” would be null, but in reality it just matched every word and then marked them as null in the string since there was no match - not what I was expecting either.
    So if COND matched “if” show it in the functionlist and if it contained a colon before it skip it and not show it in the functionlist. Moreover, when COND is no/false that the second match of empty, this result wouldn’t be shown in the function list since its null (but I would end with alot of null matches within a line of code being parsed)…

    Lookahead conditional

    (?(?=…)yes|no)
    If the lookahead succeeds, matches the pattern before the vertical bar. Otherwise, matches the pattern after the vertical bar. The lookaround can be negative also. Global flag breaks conditionals.
    Example: Thus for true it highlights “is delicious”

    /(?(?=is)(is delicious)|(disgusting))/
    Candy is delicious or disgusting.

    Since the functionlist displays functions, I need to ignore if and while statements and not show them in the functionlist but when they are overloaded by preceding them with :: such as ::if, which can be defined by a function that gives if a modified meaning, I need to show them in the functionlist. Same for while or any operator such as + - / * = etc.

  • Save on exit preventing computer reboot

    12
    4 Votes
    12 Posts
    1k Views
    Reiner KellerR

    @Maxitrol-Mat Whether black is good or not depends on the contemporary interpretation… ^^
    I remember from my student days that we had to replace a NEXT station computer and scrap it per se because it was completely black (case, monitor, keyboard)
    But at the same time, consequently, all Windows 3.0 to at least Windows 7 computer systems should have been scrapped, because the default color is white/black and could hardly be changed and pretty much never was, which clearly violates the German workplace guidelines for eye protection…

  • View>Show All Characters not showing all

    3
    1 Votes
    3 Posts
    606 Views
    ConexorC

    @Alan-Kilborn said in View>Show All Characters not showing all:

    you have not fully embraced the Unicode concept – you probably should.

    Feels like PHP hasn’t embraced Unicode.

    I’ll read the other references in regards to options and ways to guard against this issue. Thank you.

  • Font: Folder as workspace

    2
    0 Votes
    2 Posts
    191 Views
    No one has replied
  • Season's Greetings

    2
    7 Votes
    2 Posts
    199 Views
    Lycan ThropeL

    @Terry-R ,

    And to you and yours and all the NPP people.

    My humble abode.
    HouseInLights2.png

  • How to delete ‘placeholder lines’ from a log file

    15
    2 Votes
    15 Posts
    838 Views
    K.M. RichardsK

    I just wanted to come back and thank everyone again for their help. As I had hoped, I took parts of multiple suggestions and came up with a sequence of search-and-replace steps which has reduced my log editing time to under ten minutes for a full week’s worth. Two months into the new process and not a single glitch!

    Best of all, I increased my knowledge base in the process. I love it when solving a problem results in my learning something new!

    Again, thank you all for your help.

  • User manual typing errors

    5
    1 Votes
    5 Posts
    287 Views
    datatraveller1D

    Hi @Alan-Kilborn ok thank you, I have just created the issue https://github.com/notepad-plus-plus/npp-usermanual/issues/457

  • 0 Votes
    3 Posts
    1k Views
    PeterJonesP

    @Arthur-Alunts ,

    The font you set in Notepad++ is just how the text is displayed in the entire Notepad++ application – and every text file you open. Font information is not saved inside text files. If having multiple fonts in your document is important to you, then you need to look for a “word processor”, not a text editor. Notepad++ is a text editor, not a word processor. (Word processors include the bundled-with-Windows MS Wordpad, or MS Office’s Word, or free ones like LibreOffice. But word processors are not the subject of this forum, so that’s as much as you’ll get about word processors here.)