• Is it possible to add new document templates?

    5
    0 Votes
    5 Posts
    3k Views
    PeterJonesP

    And now, since you brought it up, my review of that plugin, and suggestions for other choices.

    It looks to be pretty old (last update 2015), and doesn’t appear maintained It only comes in 32bit (but they still have a non-Unicode “ANSI” version available!) When you do create a new file of a given type, it doesn’t use the File Name entry from the Config Setting dialog at all. Instead, it gives it a random all-caps name, and uses the all-caps version of the File Type dropdown as the extension for the file, rather than using any sort of reasonable extension. (so if you’ve defined a PERL entry, it names it XXXXXX.PERL instead of XXXXXX.pl) I do like that it automatically sets the Language for the new file. It doesn’t let you pick UDL It doesn’t seem to honor the Auto Show in Browser when Saved (HTML) for either File1 (HTML) or for any of the other types (at least not in my experiments). If you click the little IE logo it adds to the toolbar, it opens the active file in an in-Notepad++ instance of IE that the plugin has embedded.

    Personally, I find it an interesting idea, but not well-executed. It may have been top-of-the-line in 2015 when released, but I think it could be better today. For getting the same features today, I would use:

    I would use the QuickText plugin for snippets, which allow me to do the initial populating of the file (by typing start then the QuickText-expansion keystroke). I would use the builtin View > View Current File In … rather than than its embedded IE instance; if I wanted to render in the Notepad++ environment itself, I would use the PreviewHTML plugin instead The one feature I see missing is automatically applying the Language selection when creating a new file. Of course, when I use Windows built-in Windows Explorer > Right Click > New … > (select file type), I can use Windows to store those templates, and assign a reasonable filename and extension right away; then when I open-with Notepad++ on the new file, it’s been populated from the template and opens with the right Language already selected as well… And this allows you do define a template for any UDL by just using the right extension as well.

    (PS: Seeing the new posts from @Alan-Kilborn and @andrecool-68 , I concur that PythonScript could be used to automate the initial template as well, and Npp Snippets is an alternative to the QuickText plugin.)

  • How can the missing font-size 13 be added?

    3
    0 Votes
    3 Posts
    480 Views
    andrecool-68A

    Number 13 is an unlucky number (at least for the Russians!)

  • Sorting broken with v7.8.9 update?

    15
    0 Votes
    15 Posts
    741 Views
    Alan KilbornA

    @Doc-John said in Sorting broken with v7.8.9 update?:

    As for examples, I haven’t been able to sort any of dozens of files, including lists of only numbers, so take your pick.

    This is an idiotic statement.
    YOU are the one that needs help.
    You’d think you’d bend over backwards to provide even the simplest example and show how it doesn’t work for you.
    Sheesh.

  • How do i move decimal points over using "Ctrl+h" Replace with function?

    2
    0 Votes
    2 Posts
    329 Views
    Terry RT

    @Matthew-Plueard said in How do i move decimal points over using "Ctrl+h" Replace with function?:

    move the decimal point over by 2 spaces for each number value

    You will need to be a bit more precise in your explanation. Move can go either left or right.

    So an excerpt from your file:

    (2, 'Work Jeans', '12.00', '6.00'), (3, 'Orange Hoodie', '15.00', '7.50'), (6, 'Military Magazine', '1200.00', '600.00'), (7, 'Military Suppressor', '100.00', '50.00'), (8, 'Vertical Grip', '200.00', '100.00'),

    I assume you’d probably want to go right, it makes more sense (cents) to do so, although I’m not going to provide any solution until you can be precise.

    In fact with regards the examples I provided from your file, can you provide the result you expect?

    When inserting the examples into your post, enter them first, then highlight all the example lines and hit the </> button immediately above the window in which you are typing. They will then appear in the black box as I did.

    Terry

  • UDL, lost all formatting

    7
    0 Votes
    7 Posts
    630 Views
    JRJ

    i fixed it manually. i noticed my installation has a userDefinedLang folder which contains the default Markup language settings in an XML file, but I also have a separate userDefinedLang XML file which contains my customized languages.

    once i fixed it i can see the settings in the XML file i also made a copy on network drive and can see the same formatting in that XML as well.

    not sure how i lost the other one but at least i know how to troubleshoot if it happens again.

    thanks for the attention

  • Browser doesn't launch java script

    2
    0 Votes
    2 Posts
    226 Views
    PeterJonesP

    @lidia-lidia ,

    That has nothing to do with Notepad++. Whatever editor you use to type your HTML+JavaScript, the browser will treat it the same.

    There might be new security settings on Edge and/or Firefox (and/or Chrome) which allow local JavaScript or not. But that becomes a question for experts in your browser of choice, not for experts in your editor of choice. I highly recommend finding a forum for your browser, and asking there why the same HTML+JavaScript will work on the remote online server, but won’t work when you try to render a local copy of the page.

  • A way to detect bracket pairings in a macro?

    3
    0 Votes
    3 Posts
    355 Views
    Alt KahA

    @PeterJones Thanks! I had no idea there was a “Select All Between Matching Braces” but that will do the trick!

  • Errors with configuration file symlinks

    2
    0 Votes
    2 Posts
    214 Views
    dgasawayD

    Ah, never mind. There was an issue with the theme symlink, which when corrected fixed everything. Not sure how that caused an error with the stylers.xml file - that symlink was just fine - but it went away, just the same.

  • Remove Numerical Value

    5
    0 Votes
    5 Posts
    755 Views
    Gavin CampbellG

    It works, Thanks alot Terry. Be blessed

  • highlighting

    3
    0 Votes
    3 Posts
    292 Views
    JUSTICIERBAMBOUJ

    I was using an old version (v7), I updated to the lastest and it’s indeed working, thanks man!

  • Freezing

    6
    0 Votes
    6 Posts
    380 Views
    Neo PhemaN

    @PeterJones Very good instructions!

    The sessions recreated the problem.

    I edited the xml and it now works fine.

    Great direction, thanks!

  • Replace numbers single and two digit numbers in text string

    8
    0 Votes
    8 Posts
    1k Views
    Otniel UlloaO

    Thanks guys.

    Yes, this is my first time using regular expressions and it’s going to take me some time to understand it.

    This will get me started though.

    Thanks

  • 0 Votes
    2 Posts
    311 Views
    PeterJonesP

    @Dan-McGovern ,

    As far as I know, you cannot call plugin features from the command line.

    However, I seem to remember some earlier discussion about the topic… search, search. There it is: on April 18, @Ekopalypse described a way to provide user parameters to a plugin. He shows an example of using PythonScript to parse the Notepad++ command-line options. Once you know the user parameter was set on the command line in PythonScript, you can use its capabilities to call features of the Compare plugin (or any other plugin).

  • Macro woes

    3
    0 Votes
    3 Posts
    235 Views
    Tim KoelemanT

    @PeterJones thanks a lot! That explains it.

  • Regex to find mixed text, numbers and special characters

    6
    0 Votes
    6 Posts
    822 Views
    Hans v.BuitenenH

    @Sukanya__N said in Regex to find mixed text, numbers and special characters:

    <ext-link ext-link-type=“uri” xlink:href=“https://doi.org/10.4414/smw.2020.20225”>https://doi.org/10.4414/smw.2020.20225</ext-link>

    you could try <ext-link ext-link-type.*/ext-link>
    but see that the outer brackets are not included in the find

  • Help with mass edit

    4
    0 Votes
    4 Posts
    1k Views
    Rob PuleoR

    @Rob-Puleo I know it’s a notepad++ forum and you provided the steps to export to CSV to use Notepad++. That is what I was looking for and thank you for your help!

  • RegEx - need to replace delimetered string with some its parts

    4
    0 Votes
    4 Posts
    278 Views
    EkopalypseE

    @Stanisław-Mędrzecki said in RegEx - need to replace delimetered string with some its parts:

    How do you know when to replace with B - C or sometimes C - D or D - E ?

  • Language style for AutoHotKey scripts

    4
    0 Votes
    4 Posts
    2k Views
    astrosofistaA

    Hi @David-Swarthout, All:

    Let me suggest you to take a look at AHK’s Editors forum, where you can find some resources as UDLs, Syntax Highlight, a tool to run a script or a selection directly from Notepad++ —can’t live without it—, another one to expand parameters for AHK’s functions, commands and directives, and more.

    Have fun!

  • Custom select combos from a txt file before a suffix

    3
    0 Votes
    3 Posts
    390 Views
    D Ream MenaD

    @PeterJones said in Custom select combos from a txt file before a suffix:

    (?-s)^.+(?=\R<------------>\R\Q*********\E\R<------------>)

    you re a genius broo thank youuu its worked

  • Why is it that some regex match is not replaced one by one?

    6
    0 Votes
    6 Posts
    307 Views
    Alan KilbornA

    @[username redacted] said in Why is it that some regex match is not replaced one by one?:

    I wonder if I could open the document and remember the last scroll position so next time I reopen it, it straight nagivgates to where it was.

    You may find THIS to be of interest on that topic. There’s a Pythonscript there that supposedly solves this “problem”. I haven’t tried the script out yet, so I can’t fully endorse it. It’s on my evergrowing “TODO” list. :-)