• How to disable auto-open last files at next startup?

    2
    0 Votes
    2 Posts
    2k Views
    ArkadiuszMichalskiA

    https://npp-user-manual.org/docs/preferences/#backup

    ☐ Remember current session for next launch: the current session is the current list of open files. The next time you run Notepad++, it will open with that same list of files
  • 0 Votes
    8 Posts
    549 Views
    Aleksandr OkunevA

    I upgraded from version 5.x to the latest version (I wish the best of luck to HK people, and doom to evil commies), and the text selection is indeed exactly what I need and exactly as it is in MS Word.
    Thanks a lot, everyone, stay safe and have a great weekend.
    :^)

  • TextFX menu

    4
    0 Votes
    4 Posts
    385 Views
    M Andre Z EckenrodeM

    In case this information is ever useful to anyone else, I’ve noticed that TextFX on my Windows 10 machine is back to being its own menu, and no longer a sub-menu of Plugins. The only things I recall having changed since I had the menu trouble are that I’ve removed the plugin Pork2Sausage, and I’ve installed the new NPP v7.9.0. Not sure if either of those were factors, but maybe.

  • .ics file selection problem

    20
    0 Votes
    20 Posts
    2k Views
    Terry RT

    @guy038 said in .ics file selection problem:

    at beginning of my post are totally independent !

    Firstly my apologies. I got fixated on the concept of using a positive lookahead after looking at both of your solutions. For some reason later on a did mix them together and thinking there were 2 steps.

    Perhaps in my defence I’ve just come to realise my reasoning all the way through was that there would be extraneous lines between the END:VEVENT and BEGIN:VEVENT lines, that is, between the record sets. I’ve just googled a typical ics file and whilst that isn’t true there are additional lines before AND after (header and footer info) the sets we were identifying with the regexes. I’ve got a longish one and reduced the size so you can see what shows in the file.

    BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:ECML PKDD 2015 X-WR-TIMEZONE:Europe/Lisbon X-WR-CALDESC:The European Conference on Machine Learning and Principles and Practice of\nKnowledge Discovery in Databases (ECMLPKDD) will take place i n Porto\,\nPortugal\, from September 7th to 11th\, 2015 (http://www.ecmlpkd d2015.org).\n\nThis event is the leading European scientific event on machi ne learning and\ndata mining and builds upon a very successful series of 25 ECML and 18 PKDD\nconferences\, which have been jointly organized for the past 14 years. BEGIN:VTIMEZONE TZID:Europe/Lisbon X-LIC-LOCATION:Europe/Lisbon BEGIN:STANDARD TZOFFSETFROM:+0100 TZOFFSETTO:+0000 TZNAME:WET DTSTART:19701025T020000 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD BEGIN:DAYLIGHT TZOFFSETFROM:+0000 TZOFFSETTO:+0100 TZNAME:WEST DTSTART:19700329T010000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT DTSTART:20180907T083000Z ... SUMMARY:Ex. Ep. Especial: IP/PROGI TRANSP:OPAQUE END:VEVENT BEGIN:VEVENT DTSTART;VALUE=DATE:20150803 ... SUMMARY:Workshops - Camera Ready TRANSP:TRANSPARENT END:VEVENT BEGIN:VEVENT DTSTART;VALUE=DATE:20150901 ... SUMMARY:Tutorials - Tutorials Material TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR

    So although the OP never showed this I had made the assumption I couldn’t guarantee there weren’t other lines, nor did I think to ask.

    Thanks for critiquing my regexes. I had made a discovery and couldn’t quite believe I hadn’t considered it before. There have been lots of instances where I wanted to find a data set with a specific string using the lookahead and seeing it would continue through other sets UNTIL it found the correct one. The realisation I had the power to stop it upon a failed string search within the 1 data set was (dare I say it) overwhelming. It was like a light had suddenly switched on, learning a new ability with regexes.

    Cheers
    Terry

  • replace all values of a variable by half

    3
    0 Votes
    3 Posts
    872 Views
    CynicC

    thanks a ton!

  • Open text file and jump to the end

    10
    0 Votes
    10 Posts
    2k Views
    Michael VincentM

    @Alan-Kilborn said in Open text file and jump to the end:

    I don’t see it as “hacky”.

    I was hoping -1 (negative one) would be like “last array element” and bring me to the last line, but it didn’t work. I would think that would be “less hacky”.

    :-)

    Cheers.

  • Notepad++ can download file but can not upload

    3
    0 Votes
    3 Posts
    1k Views
    f.h.p guglF

    Hi PeterJones,

    i thank you very much for your help.

    I again checked everything in my network and found a bad intermidiate connection. Maybe it was a pure chance that it was working after restartt.

    Now it is working fine again. Thank you!

    best regards
    Franz

  • How to find the Correct Regex pattern to extract data from a text file

    16
    0 Votes
    16 Posts
    2k Views
    Suresh ReddyS

    Thank you for the detailed explanation.

  • Search and replace between 2 files

    8
    0 Votes
    8 Posts
    614 Views
    Alan KilbornA

    @Makwana-Prahlad said in Search and replace between 2 files:

    PeopleSleptWith

    ???

    I think it is time for “banning” this individual.

    Grounds: He pollutes threads with posts with useless and unrelated information which will only make any future readers seeking a solution to the problem originally posed confused.

    Need more evidence: Look at his previous postings.

  • FIND AND REPLACE SOME CHARACTERS SET OF NUMBER IN NOTEPAD ++

    9
    0 Votes
    9 Posts
    354 Views
    miki simoneM

    Thanks Peter that’s just what I was looking for, it works perfectly. thanks a lot

  • UDL: folding code definitions that include ((EOL)) or similar

    4
    0 Votes
    4 Posts
    487 Views
    DIV-on-githubD

    For reference, the syntax is CFX Command Language (CCL), as used in several ANSYS applications, including session files for CFX-Pre and CST files for CFD Post.
    The colon–END syntax is called CCL “Simple Syntax” (for defining objects, including their constituent parameters).
    The lines starting with “>” are CCL “action line” syntax.
    There can also be lines of Perl code embedded in the same script file, which would start with “!” and are called “Power Syntax” (not included in the above example).

  • Is there an HTML equivalent to the XML Tools plugin?

    2
    0 Votes
    2 Posts
    336 Views
    TroshinDVT

    @Ben-Hutchinson said in Is there an HTML equivalent to the XML Tools plugin?:

    I am using tidy.exe + jN plugin for html formatting.
    jN plugin for user interface interaction with N++.
    tidy.exe for formatting.

    see https://github.com/trdm/jn-npp-scripts/blob/master/includes/trdmTidy.js
    functions formatHtmlFile(); myFormatHtmlFiles().
    alt text

    It was done for myself. “Just for Fun”. I know I need to improve.
    If you need to improve - write.

  • Custom Function List, help needed

    5
    1 Votes
    5 Posts
    456 Views
    guy038G

    Hello, @ericsambach, @dinkumoil and All;

    I think that you can simplify your function list as below :

    <function mainExpr="(?x) \h* [[:alnum:]]+ (?= (?:\s*~[^\n\r~]*~)* \s* \\[ )"> <functionName> <nameExpr expr="[[:alnum:]]+"/> </functionName> </function>

    Notes :

    No need of of (?-i) modifier, as we use the [[:alnum:]] Posix character class which is identical to [\u\l\d] or [A-Za-z0-9]

    No need of the (?s) modifier, as we don’t use any regex dot symbol ( . ) anyway !

    No need of the (?m) modifier, as we don’t use the ^ and $ assertions, too !

    The first \s* of the regex has been moved at beginning of the non-capturing group (?:\s*.....)

    Best Regards,

    guy038

  • search for certain data in a certain tag then copy these records - xml

    19
    0 Votes
    19 Posts
    2k Views
    Momo HaraM

    Ok, many thanks for all the information. once I start learning the expression, I will do it step by step… .

  • Intercept a particular Notepad ++ instance

    6
    2 Votes
    6 Posts
    422 Views
    Alan KilbornA

    @ArkadiuszMichalski said in Intercept a particular Notepad ++ instance:

    I will try check two Firefox portable if such situation also appear for them.

    Not sure why that is relevant.

    If not then there will probably be something wrong with Notepad ++.

    I don’t think you’re going to get much support in there being something “wrong with Notepad++” in this regard.

  • Sync with SimpleNote

    2
    0 Votes
    2 Posts
    483 Views
    PeterJonesP

    @SMylk ,

    In general, when asking about interfacing one product (in this case, Notepad++) with some other external product (in this case, SimpleNote), it’s considered polite to provide links to and/or descriptions of what SimpleNote is – I had to do a web search to find out what it is.

    As far as I know, there is no Notepad++ plugin to deal with SimpleNote – definitely not in the Plugins Admin plugin list. There may be one somewhere, but I don’t know what it is.

    After a brief search on SimpleNote, I saw that it has both a web interface and a local Windows app. Are you looking to connect to the web data, or to the data for a local app version? I think I saw that it’s default filetype is JSON – Notepad++ can read the raw JSON, but it won’t interpret it the way that SimpleNote does – but maybe opening the SimpleNote .json file with Notepad++ and using the JSON Viewer plugin would give you something like what you want.

    I guess the real question is “what are you trying to accomplish?” Because that might affect what answers people give.

  • Regexp fails to match UTF-8 characters

    16
    0 Votes
    16 Posts
    5k Views
    Alan KilbornA

    Wow.
    More to it than I’d have thought.
    Thanks for the insight.

  • 0 Votes
    4 Posts
    457 Views
    RedEyedRockerR

    @Terry-R
    Nevermind, I found tab settings under Language preferences.

  • How do I remove everything that doesn't have a certain number in it?

    3
    0 Votes
    3 Posts
    197 Views
    AdrianTweeterA

    Another approach uses the Mark lines facility. Use Menu => Search => Mark. Enter = 100 (i.e. =, space, and 100) into ‘Find what’. Ensure that ‘Bookmark line’ and ‘Wrap around’ are selected. Then click on ‘Mark all’. Expect to see blue circles on the found lines. Next use Menu => Search => Bookmark => Remove unmarked lines. That should leave only the wanted lines.

    If all the unwanted lines have = 50 then you could enter that into the ‘Find what’ and then use menu => Search => Bookmark => Remove bookmarked lines.

    For either you could use more complex ‘Find what’ strings with regular expressions.

  • JSON in Obsidian theme

    2
    0 Votes
    2 Posts
    892 Views
    Michael VincentM

    @Kale-Janeth said in JSON in Obsidian theme:

    or should I manually do it

    This is normally your best option for themes since they aren’t upgraded along with the default theme to include new languages or even new parsing / types for existing languages.

    Lucky for you I use Obsidian as well and I have already updated most of the missing languages and styles. Note you may want to cut/paste from this one or keep your existing Obsidian.xml backed up as I have some global formatting changes to text and color as well under the last GlobalStyles section. Maybe a diff between mine and yours will help you “migrate”.

    Good luck!

    Cheers.