• Season's Greetings

    Dec 24, 2022, 12:16 AM
    7 Votes
    2 Posts
    224 Views

    @Terry-R ,

    And to you and yours and all the NPP people.

    My humble abode.
    HouseInLights2.png

  • 2 Votes
    15 Posts
    1k Views

    I just wanted to come back and thank everyone again for their help. As I had hoped, I took parts of multiple suggestions and came up with a sequence of search-and-replace steps which has reduced my log editing time to under ten minutes for a full week’s worth. Two months into the new process and not a single glitch!

    Best of all, I increased my knowledge base in the process. I love it when solving a problem results in my learning something new!

    Again, thank you all for your help.

  • User manual typing errors

    Dec 22, 2022, 7:46 PM
    1 Votes
    5 Posts
    333 Views
  • 0 Votes
    3 Posts
    1k Views

    @Arthur-Alunts ,

    The font you set in Notepad++ is just how the text is displayed in the entire Notepad++ application – and every text file you open. Font information is not saved inside text files. If having multiple fonts in your document is important to you, then you need to look for a “word processor”, not a text editor. Notepad++ is a text editor, not a word processor. (Word processors include the bundled-with-Windows MS Wordpad, or MS Office’s Word, or free ones like LibreOffice. But word processors are not the subject of this forum, so that’s as much as you’ll get about word processors here.)

  • 0 Votes
    6 Posts
    1k Views

    @PeterJones

    Sorry for my late response, but I visit the forum only occasionally.

    It seems like you felt my last comment was in some kind offending, rude or at least harsh. If this is true I beg you pardon, it was not my intention to be like that. Maybe it seems so because English is not my mother tongue and I was not able to find an appropriate wording when I quickly fired off my comment.

    And of course no one can know every single detail of all plugins, even if they use them themselves.

  • Bookmark by style

    Aug 6, 2019, 12:22 AM
    1 Votes
    11 Posts
    3k Views

    The marker ID used for bookmarks changed in Notepad++ 8.4.6 (and later). It is now 20, instead of 24. So, all references to 24 in this thread and/or its script(s), should be changed to 20.

  • Bookmark Scrollbar display

    Dec 31, 2016, 2:16 PM
    2 Votes
    13 Posts
    6k Views

    The marker ID used for bookmarks changed in Notepad++ 8.4.6 (and later). It is now 20, instead of 24. So, all references to 24 in this thread and/or its script(s), should be changed to 20.

  • All bookmarks list view

    Jun 16, 2022, 8:54 PM
    2 Votes
    20 Posts
    7k Views

    The marker ID used for bookmarks changed in Notepad++ 8.4.6 (and later). It is now 20, instead of 24. So, all references to 24 in this thread and/or its script(s), should be changed to 20.

  • 0 Votes
    14 Posts
    20k Views

    The marker ID used for bookmarks changed in Notepad++ 8.4.6 (and later). It is now 20, instead of 24. So, all references to 24 in this thread and/or its script(s), should be changed to 20.

  • 0 Votes
    9 Posts
    440 Views

    @Alan-Kilborn No problems, I am just grateful that you guys were there to improve my understanding of NotePad and it’s configuration.

  • Loosing previous session on reopen

    Dec 19, 2022, 6:09 PM
    0 Votes
    2 Posts
    262 Views

    @Maxima-120

    Your N++ debug info? (paste here info from the N++ menu ? -> Debug Info…)

    Was there a Windows restart/shutdown involved? I mean - you (or Windows OS itself) restarted your PC while N++ was still running and then you have lost your N++ tabs after reopening the N++?

  • Hide comments mode

    Jan 5, 2019, 12:34 AM
    0 Votes
    11 Posts
    5k Views

    There’s a possible solution for this thread’s topic, HERE.

  • 0 Votes
    2 Posts
    3k Views
  • Wikipedia vs. NP++ character sets

    Dec 16, 2022, 3:55 PM
    1 Votes
    5 Posts
    295 Views

    @PeterJones I corrected it, one less error in WP!

  • 0 Votes
    3 Posts
    345 Views
  • 0 Votes
    5 Posts
    363 Views

    @PeterJones
    Thank a lot , it works now. So i’d better to backup an offline manual to reference api . Thank everyone .

  • 0 Votes
    14 Posts
    2k Views

    @Richard-J-Otter said in Font Linking to display glyphs not in font:

    @astewart77 My understanding was that those registry settings were deprecated in later Windows versions. But the whole area seems badly documented in MS literature.

    Here is a fresher link, dated Nov 2022, to a MS doc page for font fallback / fontlink. No mention of deprecation.

    I have seen instructions on Google successful in Windows 10. On the other hand, this github bug report for Notepad++ says it stopped working after a Windows 11 release, for certain conditions. Apparently, it was still working in Windows 11 prior to that.

    Using something that’s deprecated doesn’t make you a bad person. If your registry has font linking enabled, there will already be some entries there. No harm in adding an entry.

  • Find NULL Lines with RegEx

    Dec 14, 2022, 6:34 PM
    0 Votes
    5 Posts
    5k Views

    @rdipardo

    I think your guess as to the OP’s data may have hit the nail squarely on the head.

    It would have been abundantly clear earlier if the OP had posted a screenshot of what he was working with.

  • Restarting windows popup

    Dec 15, 2022, 6:09 AM
    0 Votes
    2 Posts
    257 Views

    @Daryl-Vine

    See HERE for more information on this topic.

    To QUOTE the developers, “Already fixed, will be in the next N++ version” (presumably meaning 8.4.8).

  • 0 Votes
    4 Posts
    1k Views

    @B-M ,

    I was actually cogitating over this for the past day, because I thought a simplified version of your request might be doable in a scripting plugin:

    If you are willing to use a script for the PythonScript plugin and run it manually, then this might be enough for you.

    23883-highlight-frequent-words.py PythonScript Instructions

    When you run the script, it will analyze the active file’s wordlist, and assign a foreground color to the N most-frequent words from the active file. (It will ignore 1 and 2-letter words, and anything in the list of stopwords. The default stopwords include some linking verbs, conjunctions, articles, and prepositions; there are probably other words that should be in the default list, but it was enough for proof-of-concept.)

    You can edit the script to change the “stopwords” by adding words into the string. You can change the palette by editing the list in def createPalette(): , and by doing that, you can change how many words will be colored.

    The 2022-Dec-13 source for the script is included in the post. The link above will always take you to my most recent version (in case I make future bugfixes or feature additions).

    Script

    # encoding=utf-8 """in response to https://community.notepad-plus-plus.org/topic/23883/ When run, this script will count all the words (except for stopwords), and assign a color to each word in the list of Top N Colors Edit the contents of the stopwords variable to change which words are ignored - the default stopwords are some linking verbs, conjunctions, articles, and prepositions - words of 1 or two characters are automatically annoyed Edit the list of appended colors in createPalette() to change the color palette - you can change the colors to your liking - you can add or remove colors to change the number of words that will be colored - the default color list is based on mspaint.exe's palette on my laptop Based heavily on these: - @Alan-Kilborn https://community.notepad-plus-plus.org/post/61801 - @Ekopalypse https://github.com/Ekopalypse/NppPythonScripts/blob/master/npp/EnhanceAnyLexer.py """ from Npp import editor,notepad,console, INDICATORSTYLE, INDICFLAG, INDICVALUE from random import randint class FrequentHighlighter(object): INDICATOR_ID = 0 stopwords = """ be am are is was were been has have and but or nor for yet so the an aboard about above across after against along amid among around as at before behind below beneath beside between beyond but by concerning considering despite down during except following for from in inside into like minus near next of off on onto opposite out outside over past per plus regarding round save since than through till to toward under underneath unlike until up upon versus via with within without """.split() @staticmethod def rgb(r, g, b): ''' Helper function Retrieves rgb color triple and converts it into its integer representation Args: r = integer, red color value in range of 0-255 g = integer, green color value in range of 0-255 b = integer, blue color value in range of 0-255 Returns: integer ''' return (b << 16) + (g << 8) + r def match_found(self, m): self.word_matches.append(editor.getTextRange(m.span(0)[0], m.span(0)[1]).lower()) def createPalette(self): self.palette = [] self.palette.append(self.rgb(237,28,36)) self.palette.append(self.rgb(255,174,201)) self.palette.append(self.rgb(255,127,39)) self.palette.append(self.rgb(255,201,14)) self.palette.append(self.rgb(255,242,0)) self.palette.append(self.rgb(239,228,176)) self.palette.append(self.rgb(34,177,76)) self.palette.append(self.rgb(181,230,29)) self.palette.append(self.rgb(0,162,232)) self.palette.append(self.rgb(153,217,234)) self.palette.append(self.rgb(63,72,204)) self.palette.append(self.rgb(112,146,190)) self.palette.append(self.rgb(163,73,164)) self.palette.append(self.rgb(200,191,231)) self.word_palette = {} # word palette will be populated later def go(self): self.createPalette() editor.indicSetStyle(self.INDICATOR_ID, INDICATORSTYLE.TEXTFORE) editor.indicSetFlags(self.INDICATOR_ID, INDICFLAG.VALUEFORE) self.word_matches = [] self.histogram_dict = {} editor.research('[[:alpha:]]{3,}', self.match_found) for word in self.word_matches: if word not in self.histogram_dict: self.histogram_dict[word] = 1 elif word not in self.stopwords: self.histogram_dict[word] += 1 elif word in self.stopwords: if word in self.histogram_dict: del self.histogram_dict[word] output_list = [] for word in sorted(self.histogram_dict, key=self.histogram_dict.get, reverse=True): if len(self.palette) > 0: self.word_palette[word] = self.palette.pop(0) # equivalent to perl's shift, where pop() without argument is perl's pop output_list.append('{}={} [0x{:06x}]'.format(word, self.histogram_dict[word], self.word_palette[word])) elif self.histogram_dict[word] > 1: output_list.append('{}={}'.format(word, self.histogram_dict[word])) #console.write('\r\n'.join(output_list) + "\r\n\r\n") # do the coloring self.colored = 0 editor.research('[[:alpha:]]{3,}', self.match_colorize) def match_colorize(self, m): a,b = m.span(0) word = editor.getTextRange(m.span(0)[0], m.span(0)[1]).lower() if word in self.histogram_dict: if not word in self.word_palette: return # console.write("{:<3d} => 0x{:06x}\tword='{}'[{}] from {}..{} = len:{}\n".format(self.colored, self.word_palette[word], word, self.histogram_dict[word],a,b,b-a)) editor.setIndicatorCurrent(self.INDICATOR_ID) editor.setIndicatorValue(self.word_palette[word]) editor.indicatorFillRange(a, b-a) self.colored = self.colored + 1 FrequentHighlighter().go()