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

    Locked
    4
    0 Votes
    4 Posts
    3k 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
    708 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
    9k 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
    488 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
    7k 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
    433 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
    2k 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
    723 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
    482 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.

  • How to enable side panel

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    toubeptT

    Thank you both. It turned out to be the Snippets plugin. The panel is back after enabling it. :) I’ve done other updates prior to this one and never lost that panel. I appreciate the help in getting it back.

  • How to change colors of highlights?

    3
    0 Votes
    3 Posts
    1k Views
    Kiichiro MatsushitaK

    Solved. Thank you!

  • I need help

    Locked
    2
    0 Votes
    2 Posts
    594 Views
    Terry RT

    @Andrew-Messier said:

    I have a file that I need to code in

    If you were to check the web you would have likely found it is most likely a Web Video Text Tracks File. See https://fileinfo.com/extension/vtt
    It is a text file, however I would suggest you need the appropriate editor to edit/create this type of file.

    Notepad++ is designed to edit text files, however it doesn’t necessarily understand the correct formatting of data within each file, so using it would IMO likely create a bad file.

    Terry

  • 1 Votes
    3 Posts
    778 Views
    David Ignacio Alcántara GarcíaD

    Oh my… I didn’t type the disjunction pipe (|) between the single line comment’s RE and the string literals’ one. How awful of me…
    Thank you very much, @MAPJe71 , yours works flawlessly. You’ve even added the restriction of multi-line comments’ delimiters to be at the start of the line, which I also missed.
    However, though not explicitly said in the AHK documentation, multi-line comments allow arbitrary indentation before their delimiters, so I’ve added that as well, a minor change.

    Also, single line comments’ delimiter in this language must not be preceded by non-space, so I’ve added the assertion (?<!\S) too, which is clearer than the original I used, (^|\s) (which is not even an assertion, but does the trick).
    And, regarding the flags, I think neither the multi-line nor single-line RE flags are explicitly needed in the expression, since they are both enabled by default in the parser (I’ve tested it), and the negated single-line flag can be bypassed by using the non-greedy wildcard, as I originally did. But, anyways, they clarify the purpose of the RE, and even if the Functions List engine changed its behavior regarding this matter, your RE would continue to work, so I’ll use the explicit flags as well.

    I should probably have done the comentExpr and classRange’s mainExpr with the extended RE flag, as the other larger ones, so this wouldn’t have happened.
    Sorry I posted for nothing, it was already night and I was losing all hope. Thank you for your quick response. ^^

    Also, regarding the displayMode attribute, I knew it wasn’t used as of now, but I had read it was reserved for future use, so I tried to guess something and see if it worked in the future. But now that you mention it, I’ve checked the other native parsers in the file and none of them include it, so I guess this implementation has perhaps been cancelled and I’ve removed it from mine as well. Thanks.

    Btw, I’ve noticed that global functions are unaffected by the commentExpr, yet not methods within classes. It’s not a problem at all, but it surprised me, so I’ll let it written here in case someone is puzzled by this as well. In a code like this:

    class myClass { /* myMethod() ... */ } /* myFunction() ... */

    myFunction will be found by the parser, yet being commented, but not myMethod, which is commented as well (regardless of the indentation of the comment delimiters).