• Chrome doesnt read my code

    2
    0 Votes
    2 Posts
    557 Views
    PeterJonesP

    @Nikola-Novakovic ,

    You have technically asked a “cookie baking” question. Just because “i wrote it in notepad++” doesn’t mean that your problem has anything to do with the editor. In this case, you have described the burnt crust of your cookies well enough that I can diagnose your oven temperature was too high: specifically, your file does not end in “.html”, so chrome is treating it as raw text, rather than as HTML source code.

    My guess is that you thought you named your file my.html, but that it actually got named my.html.txt, because the Windows-standard dialog box that you were using auto-added .txt instead of the .html that you thought.

    The problem boils(*) down to Windows settings and possibly a checkbox in the Notepad++ settings. (*: “now we’re boiling cookies? Peter, you’re confusing.” Blame it on the Bard, who took arms against a sea of troubles; mixed metaphors are fun)

    In Windows, you need to tell Explorer to always show file extensions. Windows Explorer > View > Options > Change Folder and Search Settings > View and uncheck Hide extensions for known file types. (That’s Windows 10. Other Windows may phrase it differently, but the essence is still the same.) With that checkbox enabled, Windows thinks it knows better than you, and that somehow hiding extensions is a good thing (with the justification that they show an icon, so you’ll know what file type it is even though you can’t see the extension). This doesn’t just affect Windows Explorer: it also affect the common Windows file-open and file-save dialog boxes. But this setting probably made it less obvious to you that your file didn’t have the .html extension, even if you thought it did.

    In Notepad++, Settings > Preferences > Default Directory has a checkbox ☑ Use new style dialog (without file extension feature & Unix style path capacity). If that checkbox is disabled, check the box! With it checked, Notepad++ uses the new-style variant of the standard Windows dialog box that doesn’t automatically apply an extension for you. With it unchecked, Notepad++ uses the old-style variant of the standard Windows dialog box that does automatically apply an extension for you… but not necessarily the one you think or want. (If you happen to be using the old-style, and try to select, say, “C source code”, it might pick .h rather than .c, because that happens to be first in the list of c-source-code extensions it was given at some point; that’s pure insanity!)

    note that I keep emphasizing that it’s a windows-standard dialog box. It’s not Notepad++'s fault, or anything that Notepad++ can change. Notepad++ gives you the option to use the old-style, but the bugs quirks of the old-style aren’t Notepad++'s fault. Both versions of the dialog box are Microsoft code which Notepad++ cannot change. Notepad++ gave that option because 5-7 years ago, when the “new style” dialog was introduced, some users would have complained “hey, you changed my dialog box; change is evil”, so Don gave NPP users the choice to continue using the old-and-evil or to update into the modern era with the new Windows standard dialog box.

    Combine these two issues, and the Windows-standard dialog will auto-apply .txt to the name of the file, without you seeing it, because the dialog happened to default to “plain text” rather than “html”, and Windows thought it would be a fun idea to hide part of the filename from you. Cool, huh?

    Save yourself those problems. Have Windows always show extensions, and have Notepad++ use the new-style Windows dialog box.

  • NPPAutoIndent Bug

    1
    0 Votes
    1 Posts
    224 Views
    No one has replied
  • How to extract certain columns from a big Notepad text file?

    4
    0 Votes
    4 Posts
    976 Views
    Alan KilbornA

    A nod to @Terry-R for the use of \h rather than my use of \s to match horizontal whitespace, although the \s actually should work here.

  • comment line open with a character and space

    8
    0 Votes
    8 Posts
    2k Views
    PeterJonesP

    @jason1820 said in comment line open with a character and space:

    Nothing works exactly like I wanted.

    That was actually the point of the experiments I showed; AFAICT, you cannot trick the UDL engine into requiring a space after the comment start sequence.

    did not take effect

    Editing NPP config files inside NPP takes a bit of finesse. The best sequence is close all Notepad++ windows, then open one, do the edits, save and exit, then reload for it to take effect. (Not that “adapt[ing] a predefined language for my own” will work; but even a valid change requires that sequence)

  • adding auto space after typing

    9
  • Matching brace doesn't work in batch

    3
    0 Votes
    3 Posts
    354 Views
    dshuman52D

    I believe the following demonstrates a quirk in the operation of the matching function for a paren.

    https://community.notepad-plus-plus.org/post/49621

    I have found no issues yet if the ^continuation character is NOT used.

  • Easy Way to copy visible lines only, number them

    2
    0 Votes
    2 Posts
    647 Views
    Alan KilbornA

    @Anon-A

    Basically you need to see here. And you need to show examples of what you are starting with and what you want to achieve for the different cases you are talking about. Nobody is going to read your mind in order to provide help in answering your questions.

    …between <dict> and </dict> in this case or sth else

    If your use of sth here is meant to be the word something then I think we can see that you want to put zero effort into asking your questions, so don’t be surprised if nobody wants to put more-than-zero effort in to answer. Don’t treat this site like you are texting.
    If this is off-base, then apologies…

  • shortcuts.xml file

    8
    0 Votes
    8 Posts
    933 Views
    Peter BrandP

    @dinkumoil said in shortcuts.xml file:

    NppUISpy

    Very useful plugin, used it to see what the Set Language command was. Thanks

  • Extracting the Column with condition

    14
    0 Votes
    14 Posts
    810 Views
    nicol armN

    @PeterJones
    Peter Jones, thanks a lot
    Solved

  • Uppercase / Lowercase / Capitalize each word.

    2
    0 Votes
    2 Posts
    305 Views
    PeterJonesP

    Edit > Convert Case to > Proper Case:

    this is a test of the emergency capitalization

    becomes

    This Is A Test Of The Emergency Capitalization
  • New v7.8 "enhancement" in Save dialog is missing keyboard shortcuts

    4
    1 Votes
    4 Posts
    425 Views
    ddavisterD

    @Franz-X-Kohl
    I agree. Keyboard shortcuts are not only useful for power users like us, but for people with disabilities who are unable to use the mouse. While users are able to use the tab key, that too is more cumbersome and keyboard shortcuts are widely considered an accessibility standard.

  • How to search between multiple lines in Notepad++ ??

    3
    0 Votes
    3 Posts
    6k Views
    Prahlad-Makwana4145P

    Hello, Happy New Year 2020 ! @guy038 and All,

    Thank you for Replay your both solution are work successfully for me.

  • remove everything before / with notepad++

    2
    0 Votes
    2 Posts
    335 Views
    Alan KilbornA

    @yuly-pmem

    I would be tempted to search (in regular expression search mode) for (?-is)^https://.+/ and replace with nothing.

  • Как отключить автозавершение слова?

    2
    0 Votes
    2 Posts
    1k Views
    andrecool-68A

    @cergei-kutuzoy Зайди в настройки и отключи этот флаг:

    Imgur

  • How to navigate many open files...

    3
    0 Votes
    3 Posts
    938 Views
    haz itH

    I appreciate the suggestion. I did try that plugin, and while it’s nice to be able to filter the open files by name, it doesn’t allow rearranging (reordering) the list as far as I can tell.
    The name filter has very limited helpfulness when you work with so many files, because remembering many file names and typing them is really not practical. Come to think of it, the Doc panel, the Windows panel, and the “Navigate To” panel all suffer from the same issue - the list can’t be reordered. That’s really the issue.

    When I add say another 20 files to the already 100 opened files, I’d like to move those last 20 somewhere up in the list…

  • Pick XMl from list of XMLs based on the matching conditions

    4
    -1 Votes
    4 Posts
    347 Views
    Alan KilbornA

    This is getting old…fast.

  • Pick XMl from list of XMLS which matching subelements tag values

    2
    -1 Votes
    2 Posts
    170 Views
    PeterJonesP

    If you have additional information for a given question, add a reply to that question, rather than opening a new one

  • Pick XML from the list of XMls which matches the conditions

    3
    0 Votes
    3 Posts
    196 Views
    guy038G

    Hi, @vijay-s,

    See my reply here :

    https://community.notepad-plus-plus.org/post/49510

    BR

    guy038

  • What does all this stuff mean?

    4
    0 Votes
    4 Posts
    326 Views
    andrecool-68A

    @Aidan-Garcia This means that you do not know where to use your notepad++, and open non-text documents in it!

  • Extract columns with notepad ++

    8
    0 Votes
    8 Posts
    960 Views
    frank kisF

    @guy038

    I’m sorry for my English, I’m from Chile, I thank you very much for your help, for you what I needed was solved
    You are a great person and teacher in notepad.
    regards
    Happy new year 2020