• New NPP Install issues for UDL features install

    14
    0 Votes
    14 Posts
    779 Views
    Lycan ThropeL

    @PeterJones ,

    Thanks for those clarifications. I’m glad I’m not going mad. :)

  • AutoHotkey: Ctrl+Shift+M adds blank line instead of triggering function

    7
    0 Votes
    7 Posts
    833 Views
    Mister MechM

    Yeah, it turned out to be the unmapped shortcuts. Thanks to everyone for the detailed explanations. It helped with this and it will help in the future.

  • Folding and collapsing indented children. Possible?

    4
    0 Votes
    4 Posts
    312 Views
    GedijorgeG

    @Alan-Kilborn
    Thank you! 🤗 Works the way I wanted. 🎉
    In combination with the shortcuts it should be very handy.

    aa.jpg

  • Wonky display of double musical note character

    8
    1 Votes
    8 Posts
    488 Views
    PeterJonesP

    Aside: the font that my browser is using for monospace has a mistake in its gylphs:
    1db47ef2-3de0-47a8-b4cb-28d310f10872-image.png
    The non-monospace font (in black) correctly shows U+266B ♫ as beamed eighth notes. The monospace font (in red) shows that same character as beamed sixteenth notes instead. Whoops.

    No, my browser says it’s using DejaVu Sans Mono for fixed-pitch, and charmap shows that DejaVu Sans Mono has four separate glyphs for those notes.

    80ece08d-4d00-43ba-8b7f-ac1b8571b218-image.png

    And Notepad++, which is set to use the same font as well, shows the correct glyphs for those four characters
    869ae6ca-141c-43f1-bde4-9f9d91a7039e-image.png

    Oh, I bet that the forum stylesheets are overriding my font choices.

    -----
    Edit: Yes, the CSS has its own list of fonts before using what the browser is set at. How rude. 24c7109c-0a36-4420-abd1-a3dd122fd0ab-image.png

    I don’t have Menlo or Monaco, so it would try Consolas, which doesn’t have that glyph, then Courier New, which doesn’t either, then monospace … so it should be trying DejaVu Sans Mono at that point… but doesn’t seem to be. Oh well, browser issue.

  • 4 Votes
    5 Posts
    490 Views
    Dimitri SudomoinD

    @Alan-Kilborn said in (Pythonscript) Status bar to display word count & understanding SCINTILLANOTIFICATION:

    Is this causing some sort of problem for you, or does it merely bother you?

    Mostly the latter, haha.

    In any case, I don’t really notice any impact on performance so I’m going to let it go. Here is my final script that I ended up writing for those that come along and want to see it.

    from re import findall def callback_sci_UPDATEUI(args): SPEECH_SEC_PER_WORD = 0.66 # 0.55 = fast, 0.66 = normal, 0.75 = paused if editor.getTextLength() < 100000 and args['updated']: # don't search "big" files if editor.getSelections() == 1 and not editor.getSelectionEmpty(): # show word count for selection text = editor.getSelText() sel_info = ' (For Selected)' else: # show word count for entire document text = editor.getText() sel_info = '' word_count = len(findall(r'\w+', text)) speech_minutes = (word_count * SPEECH_SEC_PER_WORD / 60) % 60 speech_seconds = (word_count * SPEECH_SEC_PER_WORD) % 60 speaking_time_str = "%02dm%02ds" % (speech_minutes, speech_seconds) sbar_value = 'Words: {} Speaking Time: {}{}'.format(word_count, speaking_time_str, sel_info) notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, sbar_value) editor.callback(callback_sci_UPDATEUI, [SCINTILLANOTIFICATION.UPDATEUI])
  • N++ Tabs Setting

    4
    0 Votes
    4 Posts
    287 Views
    Alan KilbornA

    @lamprey13 said in N++ Tabs Setting:

    please delete

    Only you can remove your postings, but there’s no harm in leaving it.

  • Open Notepad++ via command line with a certain character set

    14
    1 Votes
    14 Posts
    2k Views
    Alan KilbornA

    Earlier I had said:

    IMO, it makes more sense to have your proposed command line work as follows:

    notepad++ yourfile1.ext -charset=“OEM 850” yourfile2.ext -charset=“UTF-8 BOM” yourfile3.ext yourfile4.txt

    While that’s an idyllic command line, logically, it doesn’t really suit how Notepad++ currently works; example:

    notepad++ -multiInst -n15 yourfile1.txt -n10 yourfile2.txt

    While this will open “yourfile1.txt” at line 15, it will NOT open “yourfile2.txt” at line 10.

    But this:

    notepad++ -multiInst -n15 yourfile1.txt yourfile2.txt

    will open both files at line 15.

    So I think it is reasonable to allow only one -charset=... on a command line, that affects all following files; example:

    notepad++ yourfile1.ext -charset="UTF-8 BOM" yourfile3.ext yourfile4.txt <-- contains only ONE charset directive.

    If a second -charset is encountered on the command-line, it would be ignored.

  • 0 Votes
    3 Posts
    422 Views
    PeterJonesP

    @Jimmy-C_1013 ,

    If I am understanding correctly, you have hundreds/thousands of files, each with a particular naming scheme. Inside each of these files, you have the word number at least once, and you want to replace that word with part of the filename (extracted from the filename, based on the scheme you mentioned).

    Notepad++ search-and-replace does not have access to the filename, so it cannot be done natively inside Notepad++.

    However, by a clever combination of command-line and Notepad++ manipulation, you may be able to implement something that will work for you. For example, earlier this year someone asked about just inserting the whole filename into their file(s) overtop of a PLACEHOLDER variable in the discussion here – my reply, and the follow-ons, show one way in which this can be accomplished. Using the same command-line portion, and then tweaking the regex to use number instead of PLACEHOLDER should get you pretty close to what you want.

    Good luck.

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts FAQ: Where to find regular expressions (regex) documentation Notepad++ Online User Manual: Searching/Regex
  • accented characters as hex

    3
    0 Votes
    3 Posts
    1k Views
    gerdb42G

    @Zsolt-Tomo,

    your xml file should have an XML-Prolog in the first line which states the encoding to use:
    <?xml version="1.0" encoding="Windows-1252"?>
    If this line is missing, UTF-8 will be assumed since that is the default for XML files. If the prolog is set, the XML-lexer will set the document encoding accordingly.

  • Problem replacing huge number of characters

    2
    0 Votes
    2 Posts
    641 Views
    PeterJonesP

    @José-Federico-Sánchez-Sevilla ,

    Bioinformatic data is often huge files. Above about 200MB, Notepad++ starts having difficulty with large files, because of all the “extra” stuff that Notepad++ is trying to do, like syntax highlighting, and “smart match”, line-wrap, and other similar features.

    At some point, Notepad++ developers put in a hook that above 200MB, it would arbitrarily turn off syntax highlighting, but not the other features, which helped some, but not enough for some users. (Whereas other users hated that their file would syntax-highlight at 190MB but not at 210MB.)

    In the upcoming v8.4.7, there is a new tab on the Settings>Preferences dialog for changing performance settings, including changing whether it’s at 200MB or some other threshold, and the ability to enable or disable other high-performance-drag features so that you can decide how much to use. You might want to grab the release candidate for v8.4.7 and see if those options allow you to improve the performance enough to be usable for you.

  • Problem with long file names

    3
    0 Votes
    3 Posts
    337 Views
    Henry GH

    Excellent! Thank you :-}

    And I’m sure it will come in use elsewhere.

  • Display left arrow after RetVal in auto_Complete

    9
    0 Votes
    9 Posts
    555 Views
    José Luis Montero CastellanosJ

    @PeterJones
    Heh heh Perfect!
    When I pasted the graphic character ←, an â appeared instead, but it was enough to enter the hex code (entity) &#x2190 ; and everything worked. Now to find and replace everything, and enjoy with the Npp.
    Thank you so much!

  • Help with specifying a new UDL

    4
    0 Votes
    4 Posts
    328 Views
    Michael VincentM

    @Ken-Weinert said in Help with specifying a new UDL:

    Now knowing that it’s a plugin

    If it’s JSON you want, there is a JSON pretty-print feature in JSONTools.

    Cheers.

  • How to compare two .php files in Notepad

    2
    0 Votes
    2 Posts
    261 Views
    PeterJonesP

    @Irek ,

    Use the ComparePlus plugin.

  • Color next to line number

    7
    0 Votes
    7 Posts
    3k Views
    C TC

    @PeterJones Thank you very much, resolved

  • 1 Votes
    42 Posts
    40k Views
    Alan KilbornA

    @PeterJones said:

    It does stay off, unless you have multiple instances open simultaneously. In which case, as has always been the case, settings changes do not propagate from one instance to a different, already-open instance, and only one instance has authority to write its configuration to disk. This is nothing new.

    User manual REFERENCE for this for @rebber2.

  • User-defined language is ignored since 8.4.6

    5
    0 Votes
    5 Posts
    667 Views
    Lycan ThropeL

    @PeterJones ,

    I need to upgrade my version also, but I’ve just recently noted that using NPP to open a file one has right-clicked on and selected NPP to use, that it pulls up the new file, which it’s supposed to, but have noticed also, that when I switch to the previous document that came up with the right-clicked file, that my dBASEPlus UDL’s autoCompletion was not working on that file…until NPP is closed and then opened itself…and then the file would work with the autoCompletion again. Was going to write about it, but I’ll upgrade first and see it’s fixed according to your post. Thanks.

  • Find and Replace specific word in strings that start with...

    2
    0 Votes
    2 Posts
    273 Views
    Alan KilbornA

    @flux4201

    What you are looking has been dealt with before; see if THIS POST makes sense to you in regards to how it is accomplished. Ask further questions here if needed.

  • How to silently deploy v8.4.x

    7
    0 Votes
    7 Posts
    34k Views
    xomxX

    @PeterJones
    @Alan-Kilborn

    https://nsis.sourceforge.io/Which_command_line_parameters_can_be_used_to_configure_installers%3F

    So there is a “glue code in .onInit” possibility to overcome this sensitivity. But this needs a PR.

  • Mark spesific lines before a suffix

    5
    0 Votes
    5 Posts
    282 Views
    ?

    @PeterJones

    okay, thank you bro