• Set the default language

    6
    0 Votes
    6 Posts
    2k Views
    Terry RT

    @john-selverian

    I personally think this is the wrong approach as to re-enable the setting for smaller files you will need to undo some/all of what you did.

    Were you aware that you can tell Notepad++ not to apply syntax highlighting (which is where the slowness comes from on large files) by enabling and setting a MB level at which to stop this.

    Just read this section of the online manual.

    Terry

  • N++ 8.6.0 keeps crashing

    8
    0 Votes
    8 Posts
    868 Views
    Luc Van der VekenL

    To be honest, I didn’t even remember most of them being installed.
    I just disabled the first half (alphabetically), and that seems to have fixed it already.
    That includes all the ones you listed, except for NPPJSONViewer.
    I’ll continue by removing HexEditor, I’ve got another tool for that, and updating the rest.

    Sorry for running such old crap and then bothering you with the problems…

  • How to change colorful Unicode emoji characters to monochrome?

    5
    0 Votes
    5 Posts
    2k Views
    rdipardoR

    @mkupper said in How to change colorful Unicode emoji characters to monochrome?:

    The benefit of enabling DirectWrite is that it allows for displaying various Unicode characters that otherwise display as an empty block ▯.

    Or, as hollow black-and-white glyphs, if the selected font supports them:

    d2d-0ff.png

    See also this old post for a demonstration of the SciTE editor’s analogous technology option.

  • What is the 'writeTechnologyEngine' option?

    2
    0 Votes
    2 Posts
    367 Views
    PeterJonesP

    @PiotrMP006 ,

    What is the ‘writeTechnologyEngine’ option?

    That attribute in config.xml is mapped to Settings > Preferences > MISC > ☐ Use DirectWrite – it affects how Notepad++ asks Windows what to do when a given font doesn’t have a glyph for a particular character, and some other behind-the-scenes, Windows-controlled stuff. If the attribute value in the XML is 1, then the settings checkbox is checkmarked ☑; if the attribute value in the XML is 0, then the settings checkbox is not checkmarked ☐.

    I assume this is a follow-on to your other recent question. I am not sure why you didn’t just reply to your other post with “oh, I see the writeTechnologyEngine option in config.xml: will that help me change the appearance of emoji?” – that would have made it more obvious to readers that the two questions were actually related.

  • How to paste words Paste in empty Lines? (With Image as Ex.)

    7
    1 Votes
    7 Posts
    1k Views
    guy038G

    Hello, @joe-junior, @coises and All,

    We do NOT even need the excellent plugin BetterMultiSelection of @dail, to achieve your goal !

    So, let’s suppose you have this first text, pasted in a new tab

    fgsdfg zerzer dghdgh sfgsfgsdfg uiuyiti cvwvb gjgjkgjk

    Now, you append this second text, below, which should be inserted, later, in between the first section :

    4654646 9789411314 131231786000841 8673131313321 6789131321 9788 78978978

    First, if necessary, we add one blank line, between each line of that second text, with the regex

    SEARCH \R

    REPLACE $0$0

    4654646 9789411314 131231786000841 8673131313321 6789131321 9788 78978978

    Now :

    Do a 13 × 15 rectangular selection of this second text

    Copy or cut this selection ( Ctrl + C or Ctrl + X )

    Move the caret / cursor at the first empty line of the first text

    Paste your rectangular selection ( Ctrl + V )

    => You should get, at once, your expected OUTPUT text :

    fgsdfg 4654646 zerzer 9789411314 dghdgh 131231786000841 sfgsfgsdfg 8673131313321 uiuyiti 6789131321 cvwvb 9788 gjgjkgjk 78978978

    Finally, delete :

    your second text, in case of a previous Ctrl + C

    The remaining empty lines block, in case of a previous Ctrl+X

    IMPORTANT :

    This test was performed on a version prior to the last one ( v8.6 ). So, just verify if this method would still work with the default bulit-in Multi-Editing behaviour of our last 8.6 version !

    Best Regards,

    guy038

  • x64 Updates

    3
    1 Votes
    3 Posts
    504 Views
    Thor SparksT

    I’m not able to “at” you due to it being detected as a link.
    Thank you for your quick and very thorough response mkupper!
    It led me to discover that my work computer was using a 32bit install rather than the 64bit install I normally use.

    Notepad++ v8.5.7 (32-bit)
    Build time : Sep 6 2023 - 23:07:35

  • Is there no XOR operator for booleans in golang?

    3
    0 Votes
    3 Posts
    366 Views
    Mark OlsonM

    Problems regarding a Golang lexer are in NppQuestions & GolangQuestions
    Problems regarding the existence (or lack thereof) of XOR in Golang are in NppQuestions ^ GolangQuestions

  • ZPL LANGUAGE

    3
    1 Votes
    3 Posts
    642 Views
    PeterJonesP

    @Jorge-Carlos ,

    I WOULD LIKE THE ZPL LANGUAGE TO BE ADDED FOR THE VIEWING OF THOSE TYPES OF FILES.

    Notepad++ has about 80 languages built-in – but that’s a drop in the bucket compared to the uncountable number of coding languages possible in the world. It will never be able to have all the languages that someone might want.

    Because the Developers know this, they provided the User Defined Language (UDL) system, whereby you can define as many custom languages as you want for Notepad++ using lists of keywords. So feel free to follow the UDL overview in the Online User Manual, plus the offsite UDL 2.1 guide that’s linked from the Languages > User Defined Language > Define Your Language… dialog, and add your language’s keywords and operators.

    The Community even has a Collection of User-submitted UDL where users can submit your UDL definition after you’ve finished creating it, and where you can check before you create the UDL for the language, to see if someone else has already created one.

    Looking through the list at the Collection, I see there’s a “Zebra Printing Language” which will show up in the Language menu as “ZPL”, so if you download that XML file and save it in %AppData%\Notepad++\userDefineLangs\ then restart Notepad++, you should see Language > ZPL in the bottom section of Notepad++'s Language menu – and that may or may not be the right language for you, depending on what you mean by “ZPL”.

  • Is it possible to change Document Map and Function List edge color?

    8
    0 Votes
    8 Posts
    771 Views
    tusken12T

    @Andi-Kiissel If “WindowFrame” isn’t in the reg address I mentioned, it might be possible to just add that reg key and make it work if it keeps giving you issues.

  • Notepad++ Cannot Print

    4
    0 Votes
    4 Posts
    394 Views
    Harold FuchsH

    @PeterJones Thank you for this. I used the “reg” command shown in that discussion and it worked. What surprised me was that I did not have to be admin to do it.

  • MIME Tools does not url encode commas?

    3
    0 Votes
    3 Posts
    608 Views
    guy038G

    Hello, @michael-levy, @peterjones and All,

    Some other characters are not %-encoded when using the The Plugins > MIME Tools > URL Encode option

    So, here is a simple regex S/R which will encode the remaining ASCII characters !

    SEARCH (!)|(\$)|(')|(\()|(\))|(\*)|(\+)|(,)|(-)|(\.)|(_)

    REPLACE (?1%21)(?2%24)(?3%27)(?4%28)(?5%29)(?6%2A)(?7%2B)(?8%2C)(?9%2D)(?10%2E)(?11%5F)

    If you do NOT want to encode the _ char, use this S/R :

    SEARCH (!)|(\$)|(')|(\()|(\))|(\*)|(\+)|(,)|(-)|(\.)

    REPLACE (?1%21)(?2%24)(?3%27)(?4%28)(?5%29)(?6%2A)(?7%2B)(?8%2C)(?9%2D)(?10%2E)

    Best Regards,

    guy038

  • NPP 8.6 multi-edit preference not shown?

    13
    0 Votes
    13 Posts
    2k Views
    mkupperM

    @Alan-Kilborn said in NPP 8.6 multi-edit preference not shown?:

    Or is it just a matter of getting used to a new and potentially better capability, if you keep an open mind about new and better things?

    We pounded rocks the same way for about 1.5 million years. About 50,000 years ago was the start of an explosion of developing and accepting new techniques. I have long been fascinated by this as I suspect that early humans from even a million years ago were about as intelligent as today’s humans but they seemed to either not try or to not accept variations in how rocks should be pounded. See https://www.history.com/news/hunter-gatherer-tools-breakthroughs for a timeline that lead to Notepad++.

    I’m still in my cave, resisting Notepad++ v8.6’s automatic multi-carets…

  • how to reset the left margin 'changes tracking' color

    2
    1 Votes
    2 Posts
    206 Views
    PeterJonesP

    @Stephen-Williams ,

    After a save, File > Reload from Disk (The resetting of the change history is documented in a bullet point in the “Reload from Disk” section of the manual)

  • Missing custom disabled icons for "synchronize scrolling"

    4
    0 Votes
    4 Posts
    427 Views
    PeterJonesP

    @Manu-el ,

    Sorry, I misunderstood your question originally (because I didn’t remember that the sync functions had buttons on the toolbar, so my mind immediately went to the CustomizeToolbar plugin, instead of thinking of the built-in toolbarIcons feature).

    In v8.4.2-v8.4.9, Notepad++ was not correctly tracking whether horizontal/vertical synchronization was possible, so it wasn’t changing those icons, and thus, it always used your custom sync-vertical.ico and sync-horizontal.ico

    However, in v8.5, Notepad++ fixed that tracking and started using an enabled and disabled version of the builtin icon, but the developer apparently didn’t think about adding the ability to have sync-vertical_disabled.ico and sync-horizontal_disabled.ico – so when the sync are enabled, they use your custom icon, but when sync is disabled, it defaults to using the builtin icon.

    In order for it to be implemented to look for sync-vertical_disabled.ico and sync-horizontal_disabled.ico when the sync is disabled, someone would have to create an official feature request (as described in our FAQ), and then the developer or one of the other volunteers would have to implement that feature. If you do submit such a request, please paste a link to the request in a reply here, so that other interested people can follow the status of the request.

  • NPP v.8.6 bug

    7
    1 Votes
    7 Posts
    756 Views
    сергей кобяковС

    @rdipardo
    Thanks, this solution helped

  • Infinite loop when hitting save as

    8
    0 Votes
    8 Posts
    1k Views
    Ciaran McNamaraC

    This happened to me as well. It’s not an infinite loop, though. While Ctrl+Shift+A is bound to “Save As” in many applications, it’s bound to “Save All” in Notepad++, which causes this surprising behaviour that can seem like an infinite loop, if you have very many files open. To solve it, I simply rebound Ctrl+Shift+A to “Save As”.

  • How to preserve whitespace in xsd validation

    2
    1 Votes
    2 Posts
    296 Views
    Mark OlsonM

    @Enrico-Fiorini
    This feels to me more like a question about XSD (which I know nothing about, just linked the best-seeming link I could find) than about Notepad++.

    On the other hand, if you found an example of where XMLTools (or whatever plugin you’re using, IDK) was giving an error where it shouldn’t be, that is more of a Notepad++ - related question.

  • multiple edits with keyboard

    6
    0 Votes
    6 Posts
    735 Views
    Nick KatN

    @mkupper thanks for the suggestion )
    Unfortunately, not every instance has to be replaced. Depends on whether the phrase is said by other personage

  • Execute N++ "Find in Files" via cmdline/script?

    7
    0 Votes
    7 Posts
    4k Views
    Alan KilbornA

    This is a real necropost at roughly 6.5 years later, but I wanted to post an updated version of the earlier script made by @Scott-Sumner ; one that just feels a bit less hackish (sorry).

    I call this variation SearchResultPanelGetText.py:

    # -*- coding: utf-8 -*- from __future__ import print_function ######################################### # # SearchResultPanelGetText (SRPGT) # ######################################### # references: # https://community.notepad-plus-plus.org/topic/14181 # for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript #------------------------------------------------------------------------------- from ctypes import ( create_unicode_buffer, WinDLL, WINFUNCTYPE, ) from ctypes.wintypes import ( BOOL, HWND, LPARAM, ) import re user32 = WinDLL('user32') #------------------------------------------------------------------------------- class SRPGT(object): def __init__(self): self.search_results_hwnd = None WNDENUMPROC = WINFUNCTYPE(BOOL, HWND, LPARAM) user32.EnumChildWindows(user32.FindWindowW(u'Notepad++', None), WNDENUMPROC(self.foreach_child_window), 0) def foreach_child_window(self, hwnd, __): length = user32.GetWindowTextLengthW(hwnd) if length > 0: buff = create_unicode_buffer(length + 1) user32.GetWindowTextW(hwnd, buff, length + 1) if re.match(r'(?:Search) ".*?" \(\d+ hits? in \d+ files? of \d+ searched', buff.value): self.search_results_hwnd = hwnd return False # stop searching windows return True # continue searching windows def get_text(self): search_results_complete_text = '' if self.search_results_hwnd is not None: length = user32.GetWindowTextLengthW(self.search_results_hwnd) if length > 0: buff = create_unicode_buffer(length + 1) user32.GetWindowTextW(self.search_results_hwnd, buff, length + 1) search_results_complete_text = buff.value return search_results_complete_text def get_most_recent_search_result_text(self): recent_text = '' m = re.match(r'(?s)(?:Search) ".*?" \(\d+ hits? in \d+ files? of \d+ searched.*?(?=^Search|\Z)', self.get_text()) if m: recent_text = m.group(0) return recent_text #------------------------------------------------------------------------------- if __name__ == '__main__': print(SRPGT().get_text()) # demo
  • Can font size be changed to be smaller in newer version of notepad++?

    3
    0 Votes
    3 Posts
    298 Views
    rdipardoR

    @ImSpecial said in Can font size be changed to be smaller in newer version of notepad++?:

    If this is a bug, could someone who knows more about what’s going on look into this?

    What you are noticing is the effect of these changes and these changes, introduced in version 8.5.4 (see "14. Several GUI Enhancements ").

    As N++'s maintainer remarked at the time:

    The reduced tab font size is a little bit larger than before.
    Let’s see the reaction of users in the next release.

    Obviously, he accepted the larger sizes into the source tree anyway.

    If you disagree with these design choices, you can post your criticism to the GitHub issue tracker. Be sure to mention these items for context:

    Doc Switcher window icons have problems when Tab Bar ‘Reduce’ setting changed NPP RTL: tabs Close button is cut off [GUI] Plugins Admin dlg key accelerators [GUI] Find in Finder key accelerator [v8.5.3] Apply to C0, C1 Unicode EOL is cut off in some localizations [GUI/Code] Go to Line dlg [GUI] Column Editor inconsistency [L]ocalization “&” character bug [GUI] About, Debug & Save dlgs [GUI] Tabbar size inconsistencies GUIEnhancement: Tabbar (sic) [GUI] Docking container font GUI Enhancement: Tabbar part 2