• Suggestion-A tool to change the program icon

    13
    0 Votes
    13 Posts
    643 Views
    PeterJonesP

    My question for @Emmad-Kareem would be: what other apps that you use do provide such a feature?

    Have you asked the Excel developers to allow you to choose what icon you associate with spreadsheets? Do you expect IE/Edge/Chrome/Firefox/Opera to give you the option to choose a different icon for html files on your computer? Do you expect [insert your music-listening program here] to allow you change the icon for music files associated with that program?

    I have wracked my brain over all the different types of files I regularly use with default associations, and cannot come up with any type where my preferred application allows me to choose any icon I want for files they handle. If you know of any, I would be curious.

    Instead, in my experience, the general philosophy is, “if you want our program to be the default for a filetype: great, we’ll automatically choose an icon for you. If you don’t like that icon, it’s up to you, using the already-existing registry tools built into the OS (or any other third-party registry-editing tool you so desire) to do the change; you’re allowed to do it, but we’re not going to spend our time to do it for you”.

    (re: third party registry tools: nirsoft has the FileTypesManager, which can be used to manage all sorts of things to do with the verbs/actions and icons and programs associated with various file types / extensions)

  • Update Error - Unsupported 16-Bit Application

    3
    0 Votes
    3 Posts
    595 Views
    Alan KilbornA

    @Ekopalypse said in Update Error - Unsupported 16-Bit Application:

    the second r

    Gotta be a typo; the OP must have retyped the contents of a message box, and got it wrong. BTW, I’ve noticed that a lot of the message boxes in N++ have a hidden ctrl+c copy capability. Probably the the OP’s message box wasn’t one of these.

  • Updating Notepad++ Using Zip File

    13
    1 Votes
    13 Posts
    3k Views
    PeterJonesP

    @Loren-Schoepke said in Updating Notepad++ Using Zip File:

    Didn’t have a “Notepad++” folder". Not sure, but I think this gets created if you do an install. I just used ZIP file.

    You are correct. By default, an installer-version will use %AppData%\Notepad++ for storing configuration files and a zip (“portable”) version will just use the zip directory (because that’s part of what makes it “portable”).

    If you would like to maintain a separate %AppData%\Notepad++ but use the zip version, you can delete the doLocalConf.xml from the Notepad+±unzip directory; after that, the next time you run Notepad++, the %AppData%\Notepad++ folder will be created and populated; however, it might* not use the same settings that were in your zipfolder before. (*: caveat = I’ve only tried the deletion of doLocalConf.xml to auto-populate %AppData%\Notepad++ once, and wasn’t specifically looking for this feature, so I didn’t store it in long-term memory; I know it created the folder properly; my memory says that it used default config files, not copies of what’s in your zipfolder, but I could be wrong.)

  • Remove/Replace everything between two strings?

    5
    0 Votes
    5 Posts
    3k Views
    Matthew KampffM

    THANK YOU. Worked perfect. Thank you thank you

  • Show/Hide/Toggle the "Function List" window via Lua Script or Shortcut

    4
    1 Votes
    4 Posts
    714 Views
    Alan KilbornA

    @Emma-Walker said in Show/Hide/Toggle the "Function List" window via Lua Script or Shortcut:

    Clipboard History

    Clipboard History is a bit different. Once it is shown, executing the command again doesn’t close its window, it merely switches focus to it. There appears to be no keyboard-capable way of closing it; you have to use the mouse if you really want it closed, AFAICT.

  • Non-ASCII UDL delimiters

    2
    0 Votes
    2 Posts
    267 Views
    EkopalypseE

    @Wil-Fabrick said in Non-ASCII UDL delimiters:

    a certain range of characters for Comments and Delimiters,

    Seems so, like what fits in a char variable.

  • How to set "Font Name" for specific language?

    2
    0 Votes
    2 Posts
    514 Views
    EkopalypseE

    @Сергей-Друзь said in How to set "Font Name" for specific language?:

    I want the font to apply to the whole code except for keywords. Any ideas on how to solve the problem?

    If I understand correctly, then don’t mess with global styles.
    Define your DEFAULT style of the UDL LANGUAGE

    d0e361ff-289e-4697-8ac1-1b207d34827d-image.png

  • Erase what is not

    10
    0 Votes
    10 Posts
    596 Views
    Raffaele PretolaniR

    @PeterJones

    PERFECT!
    That’s exactly what I was looking for.
    Thank you very much, and sorry if I wasn’t clear.

    THANKS!

  • How to update shared copy of Notepad++

    2
    0 Votes
    2 Posts
    228 Views
    Alan KilbornA

    @Loren-Schoepke

    Responses to your earlier question did not satisfy?

  • How to change the color of the text selection?

    6
    1 Votes
    6 Posts
    2k Views
    Alan KilbornA

    But if you do that, remember, when you double-click a word it will still show in a combination of the two different color types.

  • Not able to save a file as .txt.

    7
    1 Votes
    7 Posts
    619 Views
    guy038G

    Hello, @gordonradford, @alan-kilborn and All,

    Alan, you said :

    I’d also advise turning on Windows’ ability to show you the extension

    Personally, it is, always, one the my first actions, right after installing any Windows operating system ;-))

    You also said :

    Why rely on having to look to another column to determine what your file type is?

    Well, I would say that this column isn’t completely useless as it allows you to sort your files according to their file type !

    Finally, you added :

    IMO, hiding file extensions is a crazy concept

    Oh, yes, you’re a thousand times right !

    BR

    guy038

  • Find All Occurrences Macro

    4
    1 Votes
    4 Posts
    764 Views
    Michael VincentM

    @guy038 said in Find All Occurrences Macro:

    Why don’t you use your macro, via its shortcut ( search of TODO:|BUG:|FIX:|REFACTOR:|DONE:|INFO: ) to get one instance of the title, presently needed, and then, simply use the Ctrl + F3 or Ctrl + Shift + F3 shortcuts to move around to the next or previous similar title ?

    Thanks, and not to be rude, but that kind of defeats the purpose. Maybe I should have explained a little better. When I mean “Find all Occurrences” I want the search results window to pop up with all occurrences the same as when I:

    highlight a word press CTRL-F press “Find All in Current Document”

    By making this a macro, I can then add it to the context menu and then a right-click on any word will have a click away, “Find All Occurrences” which will open the clickable search results window.

    Hope that better explains, seems it may not be possible though. Shame the $(CURRENT_WORD) variable can be used in the shortcuts.xml file for the <UserDefinedCommands> commands section, but not the <macros> section.

    Cheers.,

  • Add number in each word by Notepad++

    23
    1 Votes
    23 Posts
    2k Views
    CohenmichaelC

    @Ekopalypse

    Thank you so much. The script works very well !
    Thanks again for your precious help :)

  • Change "@" to a number, 1,2,3,4,5...

    9
    0 Votes
    9 Posts
    484 Views
    PeterJonesP

    @Ekopalypse said in Change "@" to a number, 1,2,3,4,5...:

    don’t expect text

    I’d phrase that as “don’t expect words”; it still decodes to ASCII characters which have meaning in the order in which they are presented, which by most definitions is “text”.

  • Replace second occurrence of a tag in multiple files

    8
    0 Votes
    8 Posts
    918 Views
    Anonymous GuyA

    @PeterJones @dinkumoil @dinkumoil
    <big>Thank you!</big>
    I’ve tested all three methods you provided and all of them worked. I’ll surely save this offline and come back to it in the future and try to understand it even better. Thank you for taking the time and effort to reply in such detail to my topic, appreciate it a lot. Always amazed at how a few simple lines can make your life much easier, I’ve optimized my workflow in many ways using portable software, renamers and many other things and can edit solutions from others but sadly I’m not yet able to come up with solutions like yours from scratch. Now that I think about it maybe I can give something in return. Search for “everything” by voidtools on Google, in case you don’t know about it… it’s great for personal use or much more. It scans all your drives (or mapped network locations) relatively fast (minute or two for say single 1TB drive), creates database and than you are able to find files with search terms like part of name, or for example search “june .doc” and it will find salaryjune2019.doc from parts of file name. I use it at work to search files on over 70 TB of data. It’s free, hope you find it useful, thanks again for your help and have a great day!

  • How to replace content in many files with content from one..

    3
    0 Votes
    3 Posts
    257 Views
    EkopalypseE

    If I read correctly, what about using something like this?

  • vector <T> too long

    2
    0 Votes
    2 Posts
    254 Views
  • How to fix newline and quotation mark

    8
    1 Votes
    8 Posts
    2k Views
    Prahlad-Makwana4145P

    Hello, @Andy-Light

    Please follow below steps :

    Step 1:- Find (in regular expression mode) (.+)
    Step 2:- Replace with: "/1"
    Step 3:- This adds the quotes :

    "word1" "word2" "word3" "word4"

    Step 4:- Find (in extended mode): /r/n
    Step 5:- Replace with (with a space after the comma, not shown): ,
    Step 6:- This converts the lines into a comma-separated list:
    "word1", "word2", "word3", "word4"

    I hope above information will be useful for you.
    Thank you.

  • Remarks Bug?

    2
    0 Votes
    2 Posts
    226 Views
    PeterJonesP

    @Zaidy036,

    The batch-file lexer is part of the scintilla-component library, which is a separate project whose source code gets embedded
    in the projects that include that library. Per the Sctintilla source code included in Notepad++, LexBatch.cxx line 92,
    “// Colorize Fake Label (Comment) - :: is similar to REM, see http://content.techweb.com/winmag/columns/explorer/2000/21.htm
    According to the wayback
    for that linked article,

    What’s a “fake label?” Commonly, it’s two (or more) colons at the start of a line. The first colon makes it a label, but DOS doesn’t know what to do with the second colon, so it simply abandons the line and moves on, at high speed.

    ? So, you can, if you wish, substitute “::” for REM in your batch files

    Thus, using :: as a pseudo-REM comment is making use of the fact that any invalid label-line is ignored and processed quickly

    The official GOTO docs are very specific:

    The label within the batch program must begin with a colon (:). If a line begins with a colon, it is treated as a label and any commands on that line are ignored.

    Note, both those docs specific “start of a line” or “line begins”. After some other command and the & command separator is not the beginning of a line.

    It’s not a comment (or event a “fake label”) after another command. Technically, it’s not even a comment at the beginning of a line. The fact that the lexer treats :: as a comment-start in any situation is just a concession to how abuses of a language can become considered “features” with enough people abusing it.

    Whether you think that it’s a bug, or whether you think the compromise that the Scintilla authors used is reasonable (my camp), or whether you think that the Scintilla authors should have never allowed for the abuse of the technical batch-file definition is, however, irrelevant. The Notepad++ project takes the source code for the Scintilla component wholesale from Scintilla. If you want a change in the built-in batch-file parser, you will have to check the Scintilla bug list and feature tracker; then, if you can convince the Scintilla team to incorporate your bug-fix or improvement, and an updated Scintilla version is released, you can then create a Notepad++ issue to request that Notepad++ update its Scintilla version. That process may take a while, especially if you have to try to convince the Scintilla side that your use of “fake label after ampersand is still a comment” should be implemented.

    In the mean time, since your batch files are obviously using that syntax successfully, regardless of the Sctinilla-team’s opinion, you can add extra highlighting to a builtin lexer (like the batch-file lexer) using regexes, via the script EnhanceAnyBuiltinLexer.py that @Ekopalypse shares in this linked post. That would allow you to define a regex like (?-s)\&\h*\K::.*$ that could be used to add highlighting for that circumstance (the regex might need to be tweaked to handle all your variations for ampersands and spacing; I haven’t tested it in the script; might need to check if the match-reset \K works in the python regex (I forget), or whether you’ll have to use some other lookbehind mechanism for that).