• 0 Votes
    15 Posts
    4k Views
    Brian Crosby 0B

    @PeterJones

    Yeah, I finally was able to take some time and use the markup tutorial. The </> button was adding extra triple tick marks, then giving the “hint” that its for code; I don’t consider data code…

    Not sure who’s comment mentioned my use of REGEX101, but mostly I am using it as a way to break down the components of the REGEX to understand what each piece is doing. Something I tried to do also with my explanation of what I “think” each of my expressions was doing.

    Having someone offer a potential solution is awesome and I appreciate anyone that takes the time to help people, but often there is very little of the “why/what” breakdown that leaves me still scratching my head. Your breakdown on what was going where and why is what provided my mental breakthrough to grasp what was being offered.

  • Large File being truncated on Save!

    12
    0 Votes
    12 Posts
    4k Views
    ludamo 0L

    I just tried editing (adding 3 letters) the CSV file now and it worked OK with Notepad++ version 8.4.9. Initial file size was 9,138,779,797 bytes and after editing 9,138,779,800 bytes. It took about 2 minutes to load and then 2 minutes to save on my NUC 5i5.

  • Printer Configuration Issue

    3
    0 Votes
    3 Posts
    978 Views
    James A WilsonJ

    Thanks… That worked with no problem.

  • Location of Macros

    3
    0 Votes
    3 Posts
    6k Views
    James A WilsonJ

    Terry… Thanks ever so much. It worked perfectly!!!

  • RE: UDL, Styler is not related to the Group below

    4
    0 Votes
    4 Posts
    291 Views
    PeterJonesP

    FYI,

    Over this weekend, I spent some time and converted all the remaining UDL1-style UDL config files in the User Defined Languages Collection to equivalent UDL2.1 config files, making sure that all the elements were mapped to the correct UDL2.1 element. I have also added validation to the Collection so that no more old-style UDL definitions will be accepted into the Collection.

    So it should work better when people download some of those older UDLs now.

  • margin on the left

    11
    0 Votes
    11 Posts
    2k Views
    kracovwolfK

    @Terry-R found it. it was the line number margin

  • Bookmark, copy spesific lines in notpad++

    11
    0 Votes
    11 Posts
    2k Views
    akram dunaA

    @guy038
    Thanks a lot your the best I solved my problem with our help, and sorry for my bad description its just about a language issue :D

  • Please add GBK encoding!!!

    2
    0 Votes
    2 Posts
    412 Views
    Alan KilbornA

    @vochant

    Not sure what that is, but probably no new encoding support will be added to Notepad++ moving forward; the world is unicode, for good or bad.

  • Sort by line possible this way?

    4
    0 Votes
    4 Posts
    994 Views
    Alan KilbornA

    @Peter-Maasakkers

    Contrary to the title, this has nothing to do with sorting.

  • Notepad++ not opening from Windows Search Results

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Craig-Patno said in Notepad++ not opening from Windows Search Results:

    This just started happening 2 days ago and I have been running Win11+NP++ for months now.

    If you haven’t recently updated Notepad++, it means that either you changed something or Windows 11 changed something. For example, maybe Windows 11 updated, and that update messed something up.

    You might want to find a conglomeration of super users of their computer, and ask them “when I double-click a file from Windows Explorer, it properly runs it using the default application, but when I use the Windows 11 search results and run the file from there, it opens the file in notepad.exe instead of the default application”. Make sure you supply them with your full Windows version (don’t just say “Windows 11”) The answer to that question should be the same whether or not your default application is Notepad++.

  • can notepad ++ read this language?

    7
    0 Votes
    7 Posts
    1k Views
    Derek BrownD

    @WillyTheCatz You can modify the file with a hex editor if you can find the location of the values you wish to modify. But you’ll need a debugger to do that, and even then it probably won’t be easy. If you have no experience using a debugger, I would say this task is probably beyond your abilities at the moment.

    In any case, Notepad++ is not the right tool for this job.

  • How to add or install pork2sausage to Notepad++

    4
    0 Votes
    4 Posts
    626 Views
    dinkumoilD

    @PeterJones said in How to add or install pork2sausage to Notepad++:

    install it from the zipfile you downloaded

    I guess this will not work because the TO wrote

    a link that allowed me to download a zip, “pork2sausage-master.zip”

    Thus, the downloaded file likely is a ZIP file containing the whole GitHub repository with all source code files which is not suitable for installing the plugin. For this purpose @Marc-Hankin you should click to the red marked link at the project’s GitHub site

    a097cfbc-5c2f-490f-8494-640e9007ac95-grafik.png

    which will open the release section of the project’s site. There you will see the following:

    538744eb-4f36-4610-84de-a229edb3e4b9-grafik.png

    The first 3 files in that list are installable following the “Install plugin manually” section of the Notepad++ user manual. You should download the one that matches the CPU architecture of your computer and the bitness of your Windows operating system:

    arm64 -> CPU architecture ARM, operating system bitness doesn’t matter (no different bitnesses), choose this if you run a Microsoft Surface device x64 -> CPU architecture Intel x86 compatible with AMD64 extension, operating system bitness 64 bit, choose this if you run a PC with a 64 bit version of Windows no postfix -> CPU architecture Intel x86 compatible with or without AMD64 extension, operating system bitness 32 bit, choose this if you run a PC with a 32 bit version of Windows

    To learn how to figure out the bitness of your Windows installation please search the internet with your prefered search engine.

  • How to rearrange data in ABC:XYZ Format.

    5
    0 Votes
    5 Posts
    412 Views
    Lycan ThropeL

    @Alan-Kilborn ,
    Yeah, and it sounds like someone just got their homework done, or the ChatGPT AI is at work building it’s data banks. :)

  • Need help defining UDL for log files

    2
    0 Votes
    2 Posts
    422 Views
    PeterJonesP

    @aswinfrancis91 ,

    UDL is primarily for keyword-based languages. Logfiles are much more “positional”-based (or, at least, pattern-based).

    The plugin CSVLint adds a lexer plugin (so it behaves more like a builtin lexer than a UDL). I think it might be able to specify alternate characters instead of comma , for the separator (but I don’t have the plugin installed right now, so cannot check for you).

    Alternately, there’s the AnalysePlugin, which allows you to set up multiple regex to highlight various patterns; it’s primary use is to apply multiple highlights to log files, so it’s probably pretty close to what you want.

    I would like to have json language style applied to properties section too

    Yeah, UDL cannot inherit from a builtin lexer, so wouldn’t be able to do that. And the CSVLint probably couldn’t even approximate that. OTOH, the AnalysePlugin, with its regex, would probably be able to get something reasonable.

  • Sperate Columns From Single String

    10
    1 Votes
    10 Posts
    511 Views
    Alan KilbornA

    @dinkumoil said in Sperate Columns From Single String:

    Hmm, you are right. Don’t know how, but in some way I had in mind that it is required. Anyway, good to know that it is not.

    It really IS hard to keep all this regular expression syntax straight. :-(

    I wasn’t pointing it out to pick apart your regular expression, though.

    People learn new things from what they see here, even if it isn’t their question.
    \| works…but if people can know they can write replacement expressions in Notepad++ involving | without a bunch of leaning toothpicks, then so much the better.

  • Xml file, remove table tags according the column id?

    17
    0 Votes
    17 Posts
    885 Views
    Nick KoliosN

    @guy038
    You’re a real savior.
    Thank you so much for your help, i really appreciate it.
    Thank you both

  • insert increasing number before/after specified word

    5
    0 Votes
    5 Posts
    677 Views
    Terry RT

    @SilentBronyRain said in insert increasing number before/after specified word:

    I need to insert a number every time selected word appears in the document.

    As well as a scripting option it can also be achieved with regular expressions and other built-in functions:

    Insert line number at the beginning of each line Mark (bookmark) each line with the word Polka in it Cut the marked lines and paste into another tab Insert an increasing number at the end of each line (this can start at 0) move the just inserted line number (step #4) to the position behind the word Polka Cut/Copy these lines back into the original file, at end Sort the lines by using the line number inserted step #1 Remove the line numbers

    I deliberately haven’t provided the actual commands, I will leave that for the OP to figure out. They aren’t difficult and could be a worthwhile learning experience. When inserting numbers in step #1 it’s important to tick the box “leading zeros” as otherwise sorting will not put the lines back into the original order.

    Note this works when only 1 “key word” is on each line. It would be possible to re-work the above process with multiple key words on each line but that would be a complicated exercise.

    Terry

  • How to bookmark group of selected line

    14
    0 Votes
    14 Posts
    795 Views
    Alan KilbornA

    @Shekhar-Singh

    set up the operation in the Mark window:
    Find what: \R
    Bookmark line: checked
    In selection: checked
    Search mode: Regular expression start macro recording press the Mark All button press Ctrl+F2 (which is Toggle Bookmark) end macro recording save and name macro

    With selection:

    6dff4655-1931-40ee-a72d-f7a7c6efcd73-image.png

    Run macro to get:

    5cd7d54c-2efb-4bbf-a911-94496bcabb26-image.png

    Without selection:

    21fcb4e0-929e-486b-a9bc-c15af1c71cd6-image.png

    Run macro to get:

    a0954f8b-9190-429a-a87e-edf127f2caea-image.png

  • How do I change the size of text. I don't know what I did

    3
    0 Votes
    3 Posts
    206 Views
    Majestic HelliumM

    @Alan-Kilborn thanks wasn’t expecting a response so quick and what you said is what I did I was scrolling through a very large file and I guess I accidently pressed control

  • Remove columns from a file

    25
    0 Votes
    25 Posts
    12k Views
    Alan KilbornA

    @guy038 said in Remove columns from a file:

    Why didn’t you choose the Alt + B shortcut for the Begin/End Select command ?

    It is a possible choice, certainly.

    I didn’t choose it because to me, Alt + letter means I’m opening a main menu category, i.e., Alt+f drops the File menu, Alt+s drops the Search menu, etc.

    And, if I have to press Alt, I usually have to “find the key”, whereas Shift and/or Ctrl are just more naturally located.

    Actually, from long Notepad++ usage, Alt in combination with Shift – for column mode selecting – is an “easy find” as well. But Alt by itself is harder for me.

    So if I’m going to make a feature request, I take advantage of that and suggest things that work well for me!