• FunctionList Confused

    82
    0 Votes
    82 Posts
    20k Views
    Lycan ThropeL

    @guy038 ,

    Thank you. Now, I will have to look at your code, but while I was signed out, I had another one of those epiphany things. :-)

    Figured it out with the reduced complexity by allowing everything after the this and stopping before the \) with the lookahead, by using this regex:
    \Kthis\.\K(.+)(?=\)) By doing this I was able to remove the longer more complex one that only went 3 levels deep, and reducing my or construct by one or level. This is what I can get now:
    FLObjectListSuccess2.PNG

    I think I have a problem with overthinking things. :-) I was looking for the one you showed up there, and I might still be able to use it, somewhere else, so thanks.

    Lee

  • Need some help here, please

    3
    0 Votes
    3 Posts
    355 Views
    Jay SmithJ

    Thank you!

  • how to use macro to make my code

    25
    0 Votes
    25 Posts
    4k Views
    Paul WormerP

    @guy038
    Congratulations with your ingenious solution. Although it seems to me that an editor - any editor - is not quite the right tool for this job. It is as if you are explaining how to build a wooden chicken coop with as only tool the heel of a shoe.

    shoeheel.png

  • UDL Line Comment Position Bug

    1
    1 Votes
    1 Posts
    383 Views
    No one has replied
  • Delete all text before a string

    2
    0 Votes
    2 Posts
    7k Views
    PeterJonesP

    @guszn10mm

    FIND = (?s)\A.*?(2021-05-26)

    (?s) will allow . to match newline (or you can set the flag in the dialog box) \A represents the start of the file .*? says “0 or more, as few as possible” (...) puts whatever’s in the parens in a group 2021-05-26 literal string you want to match

    REPLACE = $1

    $1 refers to the contents of the first group from the FIND

    SEARCH MODE = regular expression

    Do the replacement

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions FAQ: Where to find regular expressions (regex) documentation Notepad++ Online User Manual: Searching/Regex
  • Code Folding 2 breaking open folding

    4
    0 Votes
    4 Posts
    1k Views
    Lycan ThropeL

    @peterjones and eko,

    Thanks, I see what you mean, and it works again. I didn’t think to put an extra line, but made sure I had the two characters that I read somewhere else that had to be after something to make it function. Didn’t think to put an extra line in there, though, normally one would have. Thanks.

    Lee

  • Copy bookmarked lines with line number?

    3
    0 Votes
    3 Posts
    1k Views
    Venus642V

    @peterjones
    Thanks Peter for the information.

  • Print white words on white paper ?...

    5
    0 Votes
    5 Posts
    376 Views
    PeterJonesP

    @elodie-cemoi said in Print white words on white paper ?...:

    I am in Dark mode, but I didn’t want to change it

    You could just change it temporarily for printing (Default Theme, Print, Default Dark Theme). But Invert will work … though the inverted colors aren’t always the best for readability on printer paper / printer ink. But it really depends on what you like, which is why Notepad++ provides such flexibility.

  • File types notepad++ uses?

    3
    0 Votes
    3 Posts
    6k Views
    PeterJonesP

    @johnathon-ward ,

    If you mean, “what are all the file types that Notepad++ is automatically associated with when I install Notepad++”, @Ekopalypse’s answer is simplest. And you can can use Settings > Preferences > File Association in Administrator Mode to affect those (or any other appropriate method of file association for your version of Windows, like direct registry editing or Right Click > Open With).

    If you mean, “what kinds of files can Notepad++ read”: any kind of file that stores its text as “plain text” using UTF-8, UTF-16, or any of the old 8bit code pages that DOS used in the 80s and 90s. Anything that stores its text along with formatting in a proprietary or open binary format (like MS Word, OpenOffice/LibreOffice Writer, or Adobe Acrobat) will not be readable/editable by Notepad++.

    If you mean, “what are the files types available when I do Save As on a new file”, you can see them when you pull down the Save As Types entry field; they are listed in the Settings > Style Configurator > Language panel; they are also in the langs.xml config file, which shows all the extensions for each of the file types (the dialog will default to the first extension in the list for each file type for Saving; but for reading, if it’s any of those file types, it will be interpreted as that text.

    That previous paragraph also basically answered the related “what file types can Notepad++ syntax-highlight by default?”, too. Though without “by default”, you can extend that with User Defined Languages

  • Convert to UPPERCASE

    3
    0 Votes
    3 Posts
    303 Views
    DarthDataD

    @ekopalypse That’s perfect. Thanks!!

  • Replace unknown character

    4
    0 Votes
    4 Posts
    526 Views
    PeterJonesP

    @robert-carnegie said in Replace unknown character:

    Shooting from the hip, isn’t that tab marks?

    No, it isn’t. If View > Show Symbol > Show Whitespace and TAB or > Show All Characters is enabled (the latter is what it must be, because of the orange dots for the spaces that @Focuscar-A showed, along with the black CR and LF boxes at the end of line), then tabs use stretchy arrows in their display, as shown below.

    8d83b8bb-6005-4a55-a101-576281519891-image.png

    The dots in my screenshot are spaces, the arrows in my screenshot are tabs, and the long blank between the dots that @Focuscar-A showed is either another character or some weird spacing issue, not a tab.

  • Error message when clicking edit with notepad++

    3
    0 Votes
    3 Posts
    316 Views
    CadetSparklezC

    @peterjones said in Error message when clicking edit with notepad++:

    @cadetsparklez ,

    The error message asked if the command was correct. Is it?

    Is that where your Notepad++ installation is? Does that file really exist at the exact path shown?

    If you run Notepad++ normally, rather than through context menu, does it run correctly? Can you share Notepad++'s ?-menu’s Debug Info (you can copy/paste the text from that dialog, because sometimes the text is more than fits in the visible dialog, so a screenshot will cut things off).

    Yeah the path looks correct, the error message has quotes in the command so that should be ok with there being a space in the path, although in the debug info there is not.

    Notepad++ v8.1.9.3 (32-bit)
    Build time : Dec 6 2021 - 19:16:45
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Command Line :
    Admin mode : ON
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Home (64-bit)
    OS Version : 2009
    OS Build : 19044.1415
    Current ANSI codepage : 1252
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll

  • 0 Votes
    2 Posts
    354 Views
    PeterJonesP

    @liggliluff

    Notepad++'s line numbering system just counts the lines in order. You cannot trick it as you described.

    The Compare Plugin will line things up side-by-side, and it will appear to add more lines while viewed in Compare mode… but as soon as you turn off the compare mode, the original file goes back to the original line number (and when it’s saved to disk, even if you are in Compare mode, it will save the real file, not the one with extra lines).

    Alternately, you could start with the original file, and use the column mode selection and Edit > Column Editor dialog to insert line numbers in the text, which will match up with the original line numbers in the document. Then, if you had to insert lines to get things to line up correctly, you will easily see the empty lines as compared to the lines that start with the number. When done, you can delete the blank lines (Edit > Line Operations > Remove Empty Lines), then use column-selection or a regex to remove the numbers at the beginning of each of the lines.

  • Auto-Completion Is this Legal?

    35
    0 Votes
    35 Posts
    5k Views
    Lycan ThropeL

    @lycan-thrope
    To be clear, I have no idea how to use github, a pull request, etc. So I’m really novice in this area. As a note, the Autocompletion and functionList files (with the same name) seem to be the problem with just zipping up the files and since I have no way of knowing where users have their installations, my assumptions about 64 bit/32 bit/Standard install and stand alone install have all been pushed to the side as I tried to explain where to install the files, and am not sure what I would have to do to get a .zip version to do it automagically. I know, there’s a lot I don’t know…tell me something I don’t know. :-)

    Lee

  • How to put symbols after every letter

    6
    0 Votes
    6 Posts
    1k Views
    Neil SchipperN

    @peterjones

    My humble solutions require you to bang on “replace all” until the status becomes “0 occurrences were replaced…”

    Find1: (?<=&)(.*)([^\.])(?!\.)(.*)(?=.#) ==> adds .'s from right, does not add rightmost; tests OK Find2: (?<=&)(.*)([^\.])(?!\.)(.*)(?=#) ==> adds .'s from right, does add rightmost; tests OK ReplWith: $1$2.$3

    However, there is also an advantage. With the high powered ones, if you issue a subsequent “replace all”, the data gets mucked up. My regexes do nothing after the job is all done.

  • FTP Direct Online Script Editing of Web Files with Notepad++

    2
    0 Votes
    2 Posts
    525 Views
    PeterJonesP

    @wilfred-osula

    Could somebody please help or tell me where I’m going wrong?

    To get FTP access to remote files inside Notepad++, you need to install the NppFTP plugin using Plugins > Plugins Admin.

  • how to use macro to make my code

    3
    1 Votes
    3 Posts
    384 Views
    Alan KilbornA

    And it is HERE.

  • XML Tools Pretty Print changes empty tag

    3
    0 Votes
    3 Posts
    2k Views
    jdhertogJ

    solution:
    install/upgrade to the latest version of XML Tools (in my case 3.1.1.9) and set “Auto-close tags” to false in the Options form.

  • How to use "pip" with Pythonscript plugin?

    5
    1 Votes
    5 Posts
    1k Views
    Michael VincentM

    @michael-vincent said in How to use "pip" with Pythonscript plugin?:

    the simple Python IDE thing Eko gave us a while back

    should have linked that.

    Cheers

  • PythonScript early return

    17
    0 Votes
    17 Posts
    756 Views
    Alan KilbornA

    @paul-wormer said in PythonScript early return:

    I see “os.sep”, shouldn’t one “import os”?

    I requested a forum moderator to add the missing import os to the script listing above, and that was done…thanks Mr. Moderator!