• How to save 2000 files at once

    17
    0 Votes
    17 Posts
    12k Views
    PeterJonesP

    @Turuseutas ,

    I use Notepad++ only for note-taking. Sometimes I write, and other times I open a new tab to copy things to read later. On some days, I might create 0 to a few tabs, while on other days, I could create 10 or even 20 tabs just by clicking.

    I might suggest installing the plugin called TakeNotes. Its description as shown in the Plugins Admin:

    Helps people who like to use Notepad++ for jotting quick notes. Instead of using unnamed ‘new ?’ files, this plugins allows to quickly create new empty files in a folder of choice. The file names may be custom generated using a mask and may contain details such as the user name, date, and time of creation so that unique files may be generated. Additionally, the plugin allows to load exiting notes in the folder of choice, save existing files as a note, and open the last saved note quickly. Please refer to the Options dialog box for more details. It is strongly recommended to use this plugin in combination with AutoSave to make sure that you never loose a note.

    Based on your description, this plugin (especially combined with the author’s AutoSave plugin) will provide you with both the functionality you seem to want, plus the safety of always having your files saved somewhere rather than just relying on the session-snapshot+periodic-backup

    Perhaps they might not notice the explanation in the bottom corner of the screen?

    Users might overlook a short message that appears in the bottom corner

    I am confused how that can happen. When I use my dummy account with no reputation to start a new post, I see:
    4de2589a-cb56-4156-a027-e96ac4189a9f-image.png

    The big purple message box doesn’t just “disappear”. I have to manually click the X to be able to start typing my first post in that account. If you choose to ignore the contents of the box and just click the X, there’s not much I can do from a User Interface perspective to stop you from doing that. When I do click the X and then type and try to post, I see the “temporary” popup in the corner for about 10-15sec. But even if I missed that one, there was still the big purple box that was there when I first posted. If I try to make a second post before my earlier one is approved, because I didn’t see my first, I see the big purple box again, that I again have to click X on. And if I get a first post approved, when I try to make a second real post with no reputation, I still get the big purple box.

    Are you sure you’re not getting that box every time, and just clicking X without reading it? (If you are using a different color scheme in the forum, it might not be “purple”, but it should get in the way of you entering any post.)

  • Language, User Defined

    9
    0 Votes
    9 Posts
    257 Views
    Lycan ThropeL

    @Dennis-Bareis ,
    You have to understand, the UDL uses a complex, but pretty thorough general purpose lexer that anyone that takes the time to learn the UDL documentation and system, (and it doesn’t happen overnight) can make some pretty good User Defined Language Packages. I say package, because right now, short of the Visual UI designer in my dBASE IDE, I can use Notepad++ for a damn good IDE. It took me about a year to complete (not constantly working on it) the UDL and it includes several customizations of NPP basic features to do it.

    Syntax Highlighting - basic, I’m working on advanced now. Auto Completion - Entire language documented and hints available FunctionList - Entire language Class/Method/Functions usable for navigation Popup Context Menu that has the dark/light language options selectable and will soon include multiple versions of our legacy language UDL’s with options chosen by right click navigation. Snippets - Setup with our language specific code for pasting UDL Specific Macros for Header insertions Plugins that allow this development environment to process things that our IDE doesn’t even touch, with the option to use other plugins Theme, dark mode, color control, that our IDE lacks…etc. Replace the NPP help F1, that calls up the dBASE Help documentation

    The list can go on. Everyday I learn things. Look at it like this. If you want to make a quality UDL for yourself…slow down and take the time to learn this system, so that short of writing your own Lexer/Parser you can make a pretty good package fairly quickly.

    dBASE, that I made the package for, is more difficult for the UDL to address all things, because it’s a loose language that allows some legacy procedural code, Visual UI creation, database manipulation language, OOP Object’s and language etc. So if I can figure this out, you can. I’m no Einstein, but I had a lot of persistence, an open and positive attitude wanting to learn all of this from scratch, including learning NPP’s version of regex and regex in general.
    But try not to come here frustrated because you don’t get a red carpet roll out of how to do things. It’s not easy being a product that can do a lot for a lot of people. Maybe not everything, but so far I’ve found the only thing lacking here, is my own knowledge of how to do it…and that’s what you have to understand. You’re learning their eco system…so try to learn it and not complain about what you don’t understand yet. Please. You get more bees with honey, than vinegar.

  • Notepad ++ XML Plugin

    3
    0 Votes
    3 Posts
    138 Views
    Mark OlsonM

    @Jana-Laster said in Notepad ++ XML Plugin:

    We have previously used Notepad ++ to do transforms without issue.

    I am assuming you were using a plugin to do these transformations. Which plugin, and which command within that plugin? Which version of Notepad++?

    I suppose you could have been committing the unspeakable atrocity that is editing HTML with regex, but I don’t want to accuse you of such a grievous crime without evidence.

  • Marco's do not record and execute shortcuts.

    19
    0 Votes
    19 Posts
    614 Views
    guy038G

    Hello, @rens-duijsens and All,

    Apparently, you forgot the Key "40" ==> Down, in your list

    The key INS is Key 45 ( and not 55 )

    Some OEM keys seem missing too !

    Refer this post and the next posts, for further information :

    https://community.notepad-plus-plus.org/topic/19734/faq-list-of-notepad-key-combinations-available-for-shortcuts

    Best Regards,

    guy038

  • How to disable duplicate line?

    10
    0 Votes
    10 Posts
    231 Views
    jabcreationsJ

    @mkupper So I’m explicitly pressing Control+D and it’s no longer duplicating lines. This tab got buried though in the time since I do not recall having to remove a duplicated line. So the earlier mentioned directions seem to have worked. Thanks!

    @guy038 Thanks Guy, that worked!

  • Italics and text color

    2
    0 Votes
    2 Posts
    102 Views
    PeterJonesP

    @Ya-Boley ,

    In Notepad++, you would type the HTML code that changes color and/or sets text as italics, like the <i> tag or <p style="color: red;"> style, then save your file and upload it to your website.

    Your question is actually an HTML/CSS question, not a question specific to Notepad++ . We can help you use Notepad++ to make it more efficient for you to enter and manipulate your HTML/CSS code (for example, recommending the HTML Tag plugin and probably XML Tools plugin to make your HTML manipulation more efficient, and the NppFTP plugin for remote editing directly on your webserver)

    But generic HTML/CSS questions like the one you asked are nothing specific to Notepad++, and the HTML/CSS answer is the same whether you are using Notepad++ or notepad.exe or emacs, and thus is off topic for a Notepad++ forum, as our FAQ explains. If you need help with HTML/CSS, you will need to find a website/forum that specializes in HTML/CSS, or at least has a section where HTML/CSS questions are on-topic (such as the Stack Exchange family of sites)

  • Different text path Notepad++ batch files

    3
    0 Votes
    3 Posts
    94 Views
    mathlete2M

    @Max-lighnting said in Different text path Notepad++ batch files:

    how to use different text path on batch notepad++
    (…)
    “set /p Text”= it makes messege like text on powershell
    but i want it to use differet path for like yes/no questions

    Further to @PeterJones 's comments, it’s not clear what you mean by a “text path” in NP++. Your follow-up comments sound like references to the console window from a running batch script, but as Peter alluded to, those are the subject of other forums like the various Stack Exchange sites, not this one.

  • Display in NPP

    22
    1 Votes
    22 Posts
    478 Views
    mathlete2M

    @DomOBU said in Display in NPP:

    There are some basic words in CSS: selector, property and value. Why don’t these words appear in the CSS Style Configurator?

    This sounds like a question for the developers, but it looks like a few other users have had similar/related issues with CSS syntax highlighting, even when the identifiers are listed. If these threads do not answer your question, feel free to start a new one.

  • Remove duplicate links from the end - notpad++

    7
    0 Votes
    7 Posts
    115 Views
    guy038G

    Hello @robaned, @terry-r and All,

    Terry, your regex (?-s)^.+?/([^/]+)\R(?=.+?\1) works as expected. Howewer you still could shorten it !

    Indeed, if you have begun your regex with (?-s)^.+/, obviously, the remainder of current line cannot contain any / char anymore !

    Thus, your search regex can be simplified to :

    (?-s)^.+/(.+)\R(?=.+\1)

    I found out an other solution which could be faster in case of numerous duplicates :

    FIND (?-s)^(.+/(.+)\R)(.+/\2\R)+

    REPLACE $1

    My solution acts as the opposite of yours : it keeps the first duplicate line of each set !

    Best Regards,

    guy038

  • COBOL Word Character

    3
    0 Votes
    3 Posts
    142 Views
    Lycan ThropeL

    @Jonathan-R ,
    You’re very unclear in your question. @PeterJones is correct.

    It’s been a long time since I did any COBOL of any flavor, so I did a quick search on the newest IBM COBOL syntax, and apparently, yes, the hyphen(-) is a word character. My question, is why don’t you think that the current COBOL language is properly rendering syntax coloring, etc for COBOL, let alone IBM COBOL?

    Here is a screenshot of me just pasting some sample COBOL code in Notepad++, and just selecting under Language->C->COBOL and this screenshot shows the current colorization of that language, properly showing the hyphen as a word character.

    COBOLExampleHyphen.PNG

    This is that code so you can try it yourself:

    IDENTIFICATION DIVISION. PROGRAM-ID. VARS. DATA DIVISION. *> working storage defines variables WORKING-STORAGE SECTION. *> define a number with a sign, 3 numbers, a decimal, and then *> two numbers aafter the decimal. by default it should be 0 filled 01 FIRST-VAR PIC S9(3)V9(2). *> do the same thing as above but actually initialize *> to a number -123.45 01 SECOND-VAR PIC S9(3)V9(2) VALUE -123.45. *> defines an alphabetic string and initialize it to abcdef 01 THIRD-VAR PIC A(6) VALUE 'ABCDEF'. *> define an alphanumeric string and initialize it to a121$ 01 FOURTH-VAR PIC X(5) VALUE 'A121$'. *> create a grouped variable 01 GROUP-VAR. 05 SUBVAR-1 PIC 9(3) VALUE 337. *> create 3 alphanumerics, but use less than *> the allocated space for each of them 05 SUBVAR-2 PIC X(15) VALUE 'LALALALA'. 05 SUBVAR-3 PIC X(15) VALUE 'LALALA'. 05 SUBVAR-4 PIC X(15) VALUE 'LALALA'. *> print our variables PROCEDURE DIVISION. DISPLAY "1ST VAR :"FIRST-VAR. DISPLAY "2ND VAR :"SECOND-VAR. DISPLAY "3RD VAR :"THIRD-VAR. DISPLAY "4TH VAR :"FOURTH-VAR. DISPLAY "GROUP VAR :"GROUP-VAR. STOP RUN.

    As you can see…the hyphen(-) is treated as a word character, and properly highlighted even when being used as minus in a numerical representation.

    So again, what are you really asking, because you are clear as mud.

  • Notepad++ resets file permission bits for WSL files on save

    18
    1 Votes
    18 Posts
    1k Views
    xomxX

    @anno73 said in Notepad++ resets file permission bits for WSL files on save:

    (wsl --update) and since then the issue does not occur any more.

    This could mean that the WSL team fixed this stuff somehow in some newer versions (as I installed WSL for testing some time after you, I had probably such a newer version installed, so my ok N++ test corresponds to your current one).

    Still - I am curious how this works (there has to be probably some watch-dog guard of these NTFS EA for the drives/folders mounted from within the WSL (?)).

  • assign the same keyboard shortcut to multiple Macros

    13
    0 Votes
    13 Posts
    209 Views
    PeterJonesP

    @mathlete2 said in assign the same keyboard shortcut to multiple Macros:

    I’ve submitted another request targeted more towards my ultimate end goal.

    If your intent is to have the new one, not the old one, make sure you close the old one, so the developer knows which you actually want.

  • 0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @gokul-bhardwaj ,

    Please take the advice that I and @mkupper provided, and let us know the results:

    were you able to find the uinstaller event using the Microsoft article I linked? did you search the locations that @mkupper suggested for finding the exe? (for the third “location”, you can just search your whole computer using Windows Explorer’s “search” feature to find notepad++.exe) If so, was it at any of those locations? did you search the locations that @mkupper suggested for the config.xml and session.xml ? if so, did you find them, or not?

    Without you following through with that advice, no one can help you more than the advice already given.

  • Folder as workspace doesn't update symbolic link folders

    2
    2 Votes
    2 Posts
    97 Views
  • How to insert blank line in between every line

    16
    0 Votes
    16 Posts
    11k Views
    EkopalypseE

    @Alan-Kilborn said in How to insert blank line in between every line:

    I suppose this is about the same as @Ekopalypse 's post earlie

    No … I have zero dollars, you have two? No cookies for me :(

  • NotePad French via Intune

    4
    1 Votes
    4 Posts
    174 Views
    xomxX

    @Jean-Jean said in NotePad French via Intune:

    i would like the package FR for Notepad usage like Settings > Preferences > General > Localization : Français

    If you do, what I told you, then after the silent installation your N++ GUI should be automatically in FR.

    (during silent installations, the N++ installer can only look for any previous installation lang used on the comp and then use it to also preset the GUI of the installed N++ app)

    Edit: Maybe the problem is in what Intune really sees in that RegKey during your installation. A logging should reveal if this is it.

    Edit2: You can also do a “post-installing” action: simply take e.g. the “C:\Program Files\Notepad++\localization\french.xml” and copy it to the user %APPDATA%\Notepad++\nativeLang.xml

  • [Off Topic] How to write HTML code

    Locked
    4
    0 Votes
    4 Posts
    109 Views
    Alan KilbornA

    @Nicholas

    Please don’t continue with off-topic replies to this off-topic thread.

    @PeterJones

    Suggest locking.

  • need help with a style for a .cfg

    2
    1 Votes
    2 Posts
    78 Views
    PeterJonesP

    @Beau-Thompson ,

    You are in the right area:

    the COMMENT styles affect the lines that start with # the SECTION styles affect the [QoLmod] headers the ASSIGNMENT styles affect the = between the key and value the KEY styles affect the setting name (like lastUsername, to the left of the =) the DEFAULT styles affect the value (to the right of the =) I am not sure, but I am guessing the DEFVAL is an error condition (since it’s red in the default light-mode styler)

    So you can set the colors for each of those styles to match your desires.

    The “Properties” language appears to not recognize comments at the end of a setting – that’s most likely because either the “Lexilla” library that Notepad++ uses for parsing the files doesn’t recognize that variant of the loosely-related slew of file-types that make up the “Properties” and “INI” filetypes, or because there’s an option for Lexilla’s “Properties” lexing which Notepad++ doesn’t use; I haven’t looked into which it is. Either way, it would require a fix in Notepad++ and possibly a fix in Lexilla before it (though if it is an option, then you could make use of the PythonScript plugin, or similar, to automatically set that Lexilla option even though Notepad++ itself doesn’t).

    For the comment-after-assignment, there is a possible workaround:

    install EnhanceAnyLexer plugin open your QoLmod.cfg Plugins > EnhanceAnyLanguage > Enhance current language it will open EnhanceAnyLexerConfig.ini in your other View, and create a section called [properties file]. You could set that section to[properties file] 0x00aa00 = \S\s*\K#.* (making sure to not keep excluded_styles or to comment out that line)
    and save the EnhanceAnyLexerConfig.ini Going forward, the plugin should change the end-of-line # .... comments to a shade of green. (It will happen automatically the next time you open properties files, once the plugin config has been saved)

    The limitation with EnhanceAnyLexer is that it cannot change bold/italics/underline status, and cannot change background color. So it won’t exactly match the italicized normal COMMENTS style, but it will be close.

    ----
    update: In the LexProps source code, I only see lexer.props.allow.initial.spaces and fold.compact, so as far as I can find, Lexilla does not provides a way to allow comments at the end of a line. As a result, someone would have to request that the Lexilla project add that feature, and they would have to implement and publish it, then Notepad++ would have to update to the most recent Lexilla.
    Also, it appears that DEFVAL is used for the @ symbol for “default value”, not an error condition.

  • How to Select ALL text within a Folding Block?

    13
    0 Votes
    13 Posts
    263 Views
    gerdb42G

    @Federico-Debla said in How to Select ALL text within a Folding Block?:

    I’m on Version 7.6.6 by the way.

    That Version came out in April 2019. Wouldn’t it be time for an update? People here might not be able to reproduce your issues just because they use a more current Version.

  • Advanced replace

    3
    1 Votes
    3 Posts
    111 Views
    Mark OlsonM

    @Américo-J-C-Sousa
    Try using the find-replace form (Search->Replace from the main menu or Ctrl+H with default keybindings) and do the following:

    Set Search Mode to Regular Expressions Check the Wrap around box Find what: <(ClosingStockQuantity>)(-?\d+)(\.\d)?</ClosingStockQuantity> Replace with: <${1}${2}(?3${3}0:.00)</${1}

    This will add a zero as the second decimal place for all numbers that already have one decimal place, and a .00 after all numbers that don’t yet have any decimal places.

    Note that this is just manipulating the numbers as text, not doing actual math. If you wanted to do math on the numbers, you will need to use a scripting language.