• Bad Bracket Highlighter

    29
    1 Votes
    29 Posts
    10k Views
    SalviaSageS

    Ignore above, there were 2 syntax errors in there for some reason,
    and I fixed it. I must have made a mistake myself.

  • Set position where and how NPP opens

    Locked
    3
    0 Votes
    3 Posts
    478 Views
    Robin LamacraftR

    I was unknowingly using a very out of date 32bit version.
    Problem resolved by downloading and installing

    Notepad++ v7.6.6 (64-bit)
    Build time : Apr 3 2019 - 23:52:32
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

  • Multi-Line Find and Replace

    Locked
    8
    1 Votes
    8 Posts
    8k Views
    Alan KilbornA

    @Dick-Adams

    Follow current doc -> When ticked, when you press Shift+Ctrl+F to invoke Find in Files, it will grab the current document’s directory and shove it in the Directory box. When unticked, whatever you last had (minutes, days, weeks…ago) remains untouched in Directory.

    Transparency -> super simple, just a visual setting on the Find window

  • NppExec not being installed (though tried through Plugin Admins)

    Locked
    10
    0 Votes
    10 Posts
    2k Views
    kicKORhIT-16384-needSYDneyK

    I think I’ve found the reason.
    Sourceforge is BLOCKED!!!
    Not just that page, but it’s currently unreachable from everywhere in where I live.
    So, this seems like a problem for our country’s censorship or whatever, not on Notepad++'s side.
    Which means…

    I can use the github link, so it would be my (temporatory) solution for the problem. …and here comes…
    since I’ve found a (perhaps serious?) problem on accessing sourceforge within our country, I should report this (if I find somewhere appropriate).

    To sum up, it’s a problem local to our country and not about NPP.
    thanks for all the help! @Meta-Chuh @PeterJones

  • Cannot Open TXT Files - "Session file is either corrupted or not valid"

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    MickardEMTM

    @Meta-Chuh

    Well, I have tried all the steps outlined, and have rebooted the laptop three times. I still cannot get NPP to open a TXT file

    It is still behaving as before, where if the file has no extension, it will open that file. A file with a TXT extension will not open if it is double-clicked, not open if the file is selected from the Light Explorer menu, and will not open if you use the File/Open method

    I did a different type of test and renamed a TXT file as an INI file. NPP opened that file without an error

    I also was able to open an INI file that was generated by another program, and I was able to open a Python file (PY)

    I am thinking it has to do with the Windows context editor I was trying to use. Just not sure how to enable the TXT files again. I am thinking it is a REGISTRY issue

    Michael

  • My preferences go away to every update (backup - autosave is one)

    Locked
    6
    0 Votes
    6 Posts
    663 Views
    Meta ChuhM

    @Alan-Kilborn

    When doing the debug info from unofficial Notepad++, does it really admit to being unofficial? ;)

    sort of.

    if you know the default locations or location patterns of these releases, you can spot it in a fraction of a second, if you look at the path.

    it would not work out though, if a user decides to manually install an official release to C:\Program Files\WindowsApps\NightRise.NotepadWrapped_7.59.32.0_x64__bahp16nyyek9m\ … i would then “autodetect” it as a microsoft store release.
    same for C:\PortableApps\Notepad++ of a regular portableapps updater install.

  • Limit replace to bookmarked lines? Or something else...

    8
    0 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @PeterJones said:

    I’m not sure that “run a regex to bookmark, then run a PythonScript to edit” is any less confusing to the typical user than “run these 2-3 regex in sequence”

    A difference of philosophy. The OP already had his lines bookmarked, the script is decanted down to picking a menu item: e.g. “ReplaceAllOnBookmarkedLinesOnly”. So really it satisfies what was originally asked for, without a lot of mumbo-jumbo and smoke and mirrors with an obscure multistep regex (although those tools are good to have in one’s knowledge toolbox). :)

    Of course, there is the whole install-PS-if-you-don’t-have-it-already hurdle… ;)

  • 0 Votes
    5 Posts
    7k Views
    PeterJonesP

    @Terry-R said:

    Look for option #62 called SCI_LINEEND (at least it’s #62 in my version)

    With newer Notepad++ (like v7.6.6), you can filter on something like LINEEND, and it will make it easier to find than scrolling through 62 (more or less) rows.

    That said, there are SCI_LINEEND (scintilla message id 2314) and SCI_LINEENDWRAP (2451) – by default, 2314 is unmapped, and 2451 is mapped to END key. If you don’t have line-wrap turned on, they both behave the same. If you do have line-wrap turned on, SCI_LINEEND will take you to the end of the actual line (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of the third row); whereas SCI_LINEENDWRAP will take you to the end of the current displayed “row” (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of whichever row your cursor was on) – though if you’re already at the end of the “row”, running SCI_LINEENDWRAP again will take you to the end of the full line. There’s actually a third, SCI_LINEENDDISPLAY (2347, default mapped to Alt+END), which behaves similarly to 2451, except hitting it a second time leaves the cursor where it is.

    Any of those Scintilla messages can be mapped to whatever keyboard keys are convenient. (And scintilla messages are unique, in that you can actually map a given message to more than one shortcut.)

  • How to Build and Run Solution in Visual Studio from GitHub

    Locked
    2
    0 Votes
    2 Posts
    411 Views
    Meta ChuhM

    welcome to the notepad++ community, @rmutalik

    it is best to conduct a community search to get started.
    you will find everything you need.

    example: https://notepad-plus-plus.org/community/topic/13959/building-notepad-with-visual-studio-2015-2017

    best regards.

  • remove quotation marks from a text

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Terry RT

    @peterfrankw3 said:

    remove the quotes

    The easiest way to do this is to highlight one of the quotes, then select Search, then Replace. You will see the Find What field is already filled in with the quote you selected. I suggest have Search mode set to normal. Make sure the Replace With field is empty. Then click on Replace All button. This will remove all copies of the character.

    If by some chance the quotes you are using aren’t exactly what you have shown here you may need to repeat these steps with any other quote left behind.

    Terry

  • Cannot run in Browser

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Toni-McDonough , Welcome to the Notepad++ forum.

    You said:

    so I am thinking this means I need to hold my conrtol, alt, and shift key down simultaneiously and them push the 82 numbers and C

    Nope. “82” is the ASCII code for the character you hit: R. So Ctrl+Alt+Shift+R is the key combo. That’s also seen if you look in the Run menu’s Launch In Chrome entry. Caveat: by default, v7.6.6 has the old run-menu-style “Launch in XXX” commented out in the XML. If it is commented out for you, it won’t show up in the Run menu, and the keyboard shortcut won’t launch the file in Chrome.

    The reason for that entry being commented out by default: Notepad++ v7.6.6 has a different location for a similar command, rather than relying on the entry in the shortcuts.xml and the Run menu, you can go to View > View Current File In… > Chrome. This will stay the same, regardless of config file.

    You can assign a keyboard shortcut from inside the Notepad++ interface, whether it’s via the old Run > Launch in Chrome or via the new View > View Current File In… > Chrome.

    Settings > Shortcut Mapper For the View version, pick the Main Menu tab filter on Chrome select Chrome For the Run menu version (this will ONLY work if it’s enabled in your shortcuts.xml and visible in your Run menu): pick the run commands tab filter on Chrome select Launch in Chrome after selecting one above, click Modify set the shortcut to whatever you want (watch for conflicts) click OK and/or Close until you’re out of the dialogs
  • Help for mass replacement.

    Locked
    2
    0 Votes
    2 Posts
    404 Views
    guy038G

    Hello, владимир-антониковn, and All,

    Assuming that your XML text uses :

    Regular Simple quote ( ' ), of Unicode value \x{0027}, and not the characters and

    Regular Double quote ( " ), of Unicode value \x{0022}, and not the characters and

    These changes of text can be easily done with regular expressions :-))

    Open the Replace dialog ( Ctrl + H )

    SEARCH ><img src="(.*?)"\x20(alt=".+?").+?\x20/(></a>)

    REPLACE \x20class="item"\x20style="background-image:\x20url\('\1'\)"\x20data-\2\x20\3

    Tick, preferably, the Wrap around option

    Select the Regular expression search mode

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

    Et voilà !

    If OK, I’ll give you some explanations on that regex S/R, next time

    Best Regards

    guy038

  • Special Character Issues

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    English CrusaderE

    @Meta-Chuh Thank you for the answer, Unfortunately the updating solution has proved to be ineffective. And i had already used your other reccomendations in a previous attempt to fix the issue.

  • XQuery UDL

    Locked
    14
    0 Votes
    14 Posts
    4k Views
    Robert KirkpatrickR

    I did follow the instructions about the portable version strictly.
    I will continue the investigation myself.

  • Help required to remove unwanted strings of text

    7
    0 Votes
    7 Posts
    1k Views
    fotofrankF

    @guy038,

    Thanks!
    Though I’m using Regular Expressions a LOT, I’m always forgetting about the in-line modifiers.

    Greetz,
    fotofrank

  • Unwanted Moving Text

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Terry RT

    @Flare said:

    When Ever I Type

    If you were to look at the bottom right of Notepad++ (NPP) you should see INS. This means insert. NPP will start in this mode (at least mine does). If you hit the Insert key it will change to OVR which means overwrite. In this mode any text in front of the cursor will be overwritten by what you type.

    This is all by design, you just need to understand what mode you are in.

    Terry

  • Header and Footer variable needed for total number of pages

    Locked
    2
    0 Votes
    2 Posts
    666 Views
    PeterJonesP

    @Ian-McClain, Welcome to the Notepad++ Community forum.

    a header/footer variable for the total number of document pages

    That’s been suggested in the official issue tracker a couple years ago (issue #3610). That tracker is the official location for submitting feature requests, so they can be properly tracked. If you want to add your support to that ticket, feel free.

  • regex on fixed length string, replacing one character

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Terry RT

    @poyntzj said:

    replace one of the characters with another

    If I understand correctly you want to change the character 0 with a 5 ONLY if the line length is EXACTLY 32 characters long with a < following.

    When a problem gets complicated consider breaking it down into steps. At first glance I would:

    use the current search string that works to ALSO tag the line with special characters, either at the start or start and end, say possibly a % character. create another search (replace) regex to ONLY work on the lines with these special characters to replace the 0 with a 5 as your example suggests.

    I hope that gives you an idea.

    Terry

  • Help- Accidental keystroke puts me on first tab

    Locked
    3
    0 Votes
    3 Posts
    424 Views
    Jennifer MinellaJ

    Thanks! It’s very unlikely because of where my CTRL key and number pads are. And it always goes to the first tab (e.g. ctrl-1). It’s happening during standard word-based typing.

  • How do I change the color of a text before a specific character?

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Roger TXR

    Thank you for answering my questions, I have found an appropriate style that suits what I am looking for. (TeX)

    The file is an INI text, I just wanted to translate its contents easily by finding the correct words … Once again thanks for responding and being aware.