• Notepad++ Hides code elements

    7
    0 Votes
    7 Posts
    1k Views
    EffiosoE

    @Ekopalypse Thanks!

    Ehm… today… everything is fine again. WTF? Maybe all I had to do was a reboot…

  • NppTextViz plugin no longer working

    3
    0 Votes
    3 Posts
    665 Views
    JaZnam ForeJ

    NppTextViz seems to be abandoned by its owner, but someone posted the commits containing the fix here (it works with newest Notepad++ as of now):

    https://github.com/KubaDee/NppTextViz/pull/5/commits

    The compiled x86 and x64 binaries containing the fix are avaiable here:

    https://mega.nz/folder/cVcRWQSQ#7CGqNYXWrPyoX0dh-G_Uog

    Check them with VirusTotal prior to copying to Notepad++ plugin dir if you have any doubts.

    If posting such URLs is breaking any community rules, please tell me where else I can upload the files.

    Have a good one!

  • adding the FileName into the file itself.

    8
    0 Votes
    8 Posts
    2k Views
    Alan KilbornA

    Peter provided a macro, but looking at it, you can’t easily tell what it does (of course, Peter describes it, but what if he didn’t?).

    I’ve been working on a macro “disassembler” that will help to reverse-engineer a provided macro, or even let you just recall what your own macros actually do.

    Here’s what my in-progress tool produces for Peter’s macro:

    <Macro name="Replace First Line with Filename" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="0" message="2316" wParam="0" lParam="0" sParam="" /> SCI_DOCUMENTSTART <Action type="0" message="2338" wParam="0" lParam="0" sParam="" /> SCI_LINEDELETE <Action type="2" message="0" wParam="42030" lParam="0" sParam="" /> IDM_EDIT_FILENAMETOCLIP <Action type="0" message="2179" wParam="0" lParam="0" sParam="" /> SCI_PASTE <Action type="1" message="2170" wParam="0" lParam="0" sParam="\r" /> SCI_REPLACESEL <Action type="1" message="2170" wParam="0" lParam="0" sParam="\n" /> SCI_REPLACESEL <Action type="2" message="0" wParam="41006" lParam="0" sParam="" /> IDM_FILE_SAVE <Action type="2" message="0" wParam="41003" lParam="0" sParam="" /> IDM_FILE_CLOSE

    It does require a bit of N++ “smarts” to know what things like SCI_REPLACESEL and IDM_EDIT_FILENAMETOCLIP mean, but it isn’t a real stretch of the imagination that even noobs could figure it out.

  • UDL for tag language

    2
    0 Votes
    2 Posts
    187 Views
    PeterJonesP

    @castortech ,

    eeab7ad1-ff61-46fc-bb80-5750ec5297e6-image.png

    91981cf2-f436-4e47-a3ca-c2e42f2ea63b-image.png

    If that comes close to what you want, then you can use

    Keywords 1 = [fusion_ and [/fusion_ in prefix mode – this means that the highlighting will continue after the fusion_ through the last non-whitespace encountered in that “word” Keywords 2 = type sticky in prefix mode: without prefix mode, the = being immediately after the keyword means the keyword is not recognized. Alternately, you could turn off prefix mode, and instead include the = as part of the keyword. Here is an example of Keyword 3 = filter_sepia= filter_sepia_hover=, with peach-on-yellow coloring, with prefix mode not checkmarked:
    ba19da25-8582-4a15-af48-f60ba557a333-image.png Operators & Delimiters > Delimiter 1: Open = " and Close = " with styler = bright blue to highlight the quoted attribute values.

    Hopefully, this gets you started in the right direction.

  • 0 Votes
    7 Posts
    331 Views
    CoisesC

    @Mark-Olson said in Amazon review date regular expression doesn’t work e.g. December 23, 2021 /([A-Z][a-z]+) \d{1,2}, \d{4}/:

    Eh, I wouldn’t worry too much about the fact that ChatGPT can generate a regex that matches that specification, since generate a regex that matches a date in such-and-such a format has probably appeared a lot of times in its training data.

    A very dear friend of mine would frequently shout in frustration, “Why don’t you just answer the question?!” after doing a Google search. Despite being very intelligent and reasonably computer-savvy, she could not seem to escape the illusion that the search was responding to what she asked and not just matching words. So I suppose we shouldn’t be surprised that people using ChatGPT can’t keep in mind that it literally does not know what it is talking about. At best, it’s as accurate as the average source in its training data, which… should give us all pause…

  • User Defined Language for GCode Help

    3
    0 Votes
    3 Posts
    356 Views
    Lycan ThropeL

    @James-Richters ,
    I’m not sure what the problem is that you’re having as I just created a UDL using your code, a sample file from the one you provided, and it seems to be working fine for me without that multicolored Power keyword. There is one with it and I can’t find in your definition for the UDL where those singular or grouped letters would do that goofy multi color stuff. Here’s a screen shot of what I have after I typed in the Power Off keyword set:

    ProAuto.PNG

    @Mark-Olson is right though, that any other coloring changes that would need to have a Regex needed such as your need for a if/or condition should be done using the EnhanceAnyLexer plugin.

  • New install/user - npp won't open some files

    4
    0 Votes
    4 Posts
    2k Views
    Terry RT

    @Thomas-Shelby
    You are possibly asking someone who hasn’t been on the forum for a long time, and the post is really old as well.

    Why don’t you just explain the issue you are having and maybe a current forum member can help you?

    We’d need to know the file type (normally the file extension) as that can have a bearing on the issue. Also where it’s located. Consider copying that file to a folder close to the root (something like C:\temp folder) and see if it opens.

    What happens when you try to open the file?

    Terry

  • Unable to load Auto Complete file

    4
    0 Votes
    4 Posts
    3k Views
    Goten SanG

    @tomas-chrastina said in Unable to load Auto Complete file:

    Hi,

    finally I downloaded files. I checked file using XML Tools, and found errors. So you need to correct them.

    First you should use escaped characters for attribute values of generated XML file (it will solve most of errors I can see):
    < -> <
    > -> >
    & -> &
    " -> "

    To change this lines containing special characters like:

    <Param name="&flags"/> <Overload retVal=">" ...

    I don’t know python, but it should be easy to implement escaping for you I guess -> Escaping XML.

    Then simply use XML Tools to check file, until it will be correct.

    Hint: You can use for new line in descr attribute. It will made file easier to read.

    descr="1st Line

    2nd Line"

    --- Best regards, Tomas.

    Thanks.

  • Re-open last tab closed

    6
    0 Votes
    6 Posts
    44k Views
    Thomas ShelbyT

    @Aircheck-Indiateam said in Re-open last tab closed:

    alt space x

    Thanks.

  • Updater doesn't work, need proxy address?

    1
    0 Votes
    1 Posts
    600 Views
    No one has replied
  • Make Notepad++ default editor for browser?

    2
    0 Votes
    2 Posts
    185 Views
    Lycan ThropeL

    @Ronald-Dupas ,
    You haven’t defined your chosen browser that you want to use, so minus that information, very little factual help can be provided. However, if you are wanting to use the Firefox Browser, the below pic will show you want you’re looking for there, by clicking Settings->Applications and choose the file type you want opened by default by the Notepad++ application, click the right menu selection, and then select Use other... and browse to your chosen application.

    BrowserDefaultTextEditor.PNG

  • Greek capital letter 'Α punctuated does not appear correctly

    7
    0 Votes
    7 Posts
    6k Views
    Goten SanG

    @cchalkiopoulos said in Greek capital letter 'Α punctuated does not appear correctly:

    That is a very detailed answer. For sure you have covered all angles of this issue.

    Your 2 suggestions make sense to me and I have actually tried the 1st one and it works fine for me to change the encoding to Greek/Windows-1253.

    From my side it is totally fine to mark this thread as being resolved.
    I’m however very curious to the fact that you do not consider this as a bug on Notepad++.
    I will try to phrase this as follows: “A certain file is displayed correctly with Notepad but with Notepadd++”. Isn’t this fixable?

    Many thanks for your time.
    Honest regards,
    Christos C.

    Thanks.

  • Updating removed all my recent files?

    2
    0 Votes
    2 Posts
    179 Views
    Terry RT

    @Duck said in Updating removed all my recent files?:

    Is this intended, and is there any way to restore said files?

    No it is NOT intended, however with any system there can be issues.

    Unfortunately you have fallen victim to using the default backup system without understanding how it actually operates. Many have suffered the same issue as you and in almost every case all we can recommend you do is read the FAQ post Periodic Backup vs AutoSave Plugin. In there is information on where any possible backup files might be.

    If you are really lucky it will just be that the session.xml file which has been cleared. If so then the backup files will likely still exist. Read that post, it will explain it all.

    Please also heed the recommendations made there. If you learn anything at all (even if your critical files are lost) it is that you need to set what type of backup system you will use in future and understand the processes going on.

    Terry

  • Remove everything but specific chains

    7
    0 Votes
    7 Posts
    418 Views
    guy038G

    Hello, @david-l,

    But, regarding the two last cases :

    amounts 1234 and 4567 amount A1A1

    do they need to be followed with a space or dot character as well ?

    Remember: regular expressions are a school of precision ! Each character and its position has its importance !

    Best Regards,

    guy038

  • Notepad has hyjacked Windows Notepad

    4
    0 Votes
    4 Posts
    1k Views
    Lycan ThropeL

    @_ ,
    Amazing. The man answers your question in a straight forward and informative manner, and you read ''annoyed" in it? Wow, you’ve shown super powers of wokeness. Moving on. Downgrading post.
    And yes, that was a conveyed “annoyed” response on my part.

  • Change the color of the previous line

    3
    0 Votes
    3 Posts
    199 Views
    HaichitoH

    @PeterJones Okey, I will try to implement what you said.
    Thank you very much.

  • Help with Regex

    4
    0 Votes
    4 Posts
    225 Views
    PangolinP

    Thank you very much Mark and Guy for taking the time to answer my request. It is really appreciated!

    Have a nice evening

  • 0 Votes
    2 Posts
    292 Views
    PeterJonesP

    @Antonio-Guerriero ,

    You just want it to be “any token that ends in a : should be considered a LABEL”? Yeah, the User Defined Language lexer isn’t designed to be that complicated: it is intended for a specific list of keywords

    The EnhanceAnyLexer plugin will allow you to add a regex to change the foreground of matching text on a per language (per UDL, or per builtin lexer). Assuming that the LABEL has to be the first non-whitespace sequence on a line, and must be only alphanumeric-and-underscore-before-:, then the following should make your LABEL green.

    [your_udl_name_here] 0x00CC00 = ^\h*\w+:
  • Binary file does not reload with the HEX-editor

    2
    0 Votes
    2 Posts
    292 Views
    PeterJonesP

    @Pavel__A ,

    “base” Notepad++ has no problem with File > Reload From Disk. The symptoms you have described are almost definitely related to the HEX-Edit plugin, not Notepad++ itself. You can try to put in an issue here, but there are a lot of open issues on that plugin, and I won’t guarantee that it will be fixed. (The release history over the last few years seems to focus mostly on “crashes”, not any new features or minor bug improvements.)

  • Looking for string search that includes the & mnemonic

    14
    0 Votes
    14 Posts
    593 Views
    Alan KilbornA

    @guy038 said in Looking for string search that includes the & mnemonic:

    I noticed that the search is a non-sensitive search

    If you wanted a “sensitive” search you could add (?-i) to the start(s) of the expressions you input at the prompt.