• What do you mean?

  • @Ekopalypse

    Hello Eko,

    I met the following shortcoming with the q* coloring:
    use subs qw(divide_by_hand resultline is_fine_resultline resultline_len fine_resultline_len);
    works fine, but if I want to split my qw() in 2 lines (because is becoming to be too long on the right side of screen), then I do:

    use subs qw(divide_by_hand resultline is_fine_resultline resultline_len fine_resultline_len);

    and I loose the coloring.

    Could it be possible with python to include CRLF/NL (\n) in the pattern so that I can fold my qw (and even my other q*) statements ?

  • @Emanuele-Atza

    and i’m trying my best to make autocomplete work but seems is impossible T.T

    easiest way to test and creating your own autocomplete file, is by first duplicating any autoCompletion file, e.g.: %ProgramFiles(x86)%\Notepad++\autoCompletion\php.xml.
    (example path for an installed 32 bit notepad++ version 7.6.4)
    then rename this duplicated autocompletion file to ZeroScript.xml, restart notepad++ and start testing how it works with php syntax.
    then start replacing the autocompletion parts from ZeroScript.xml with everything you need for ZeroScript.

  • @xuzo said:

    Let’s say I have this text:

    a
    b
    c

    Now to select the whole thing, I need to drag the mouse all the way to to the top, is there a shortcut to do that?

    link text

  • @Claudia-Frank

    Sorry forthe really late post

    I follow what you have done but doesn’t work…
    N++ doesn’t recognize the fuction and doesn’t show the hints

    this is the fuction definition

    <KeyWord name=“TestFuctionWord” func=“yes” />
    <Overload retVal=“int” >
    <Param name=“int Input” />
    </Overload>
    </KeyWord>

    it recognize enerything else like number, operator, keyword, comment

    and for Autocompleting the nameFuction?

    Sorry for the bad english

  • @Phoebe-Jeebie said:

    thanks guys, all fixed!
    I just renamed the end of the file to *.html

    You need to select the desired syntax, and then it will be automatically saved in the desired file extension.

    Imgur

  • Thanks so much ☺
    It works

  • Back to the same old way of operating!

  • @Vitaliy-Dovgan said:

    I know what to do. Two versions of the *dll.zip will be created: one with the old and another one with the new folder structure inside. So the Plugins Manager will be able to use either one. And finally, as time passes, just one version of the *dll.zip will survive.

    I think Plugin Manager will still cater to old plugin arrangement.

    It is plugin Admin that is managing pluings as per new arrangement.

  • @Meta-Chuh that’s a very interesting approach, will try this, although I honestly don’t know why notepad++ doesn’t have any way to open a new temp file without losing a session on start up as most software you find.

  • welcome to the notepad++ community, @HotBit-z80

    on a notepad++ default installation, your macros will be stored at %AppData%\Notepad++ in a file called shortcuts.xml.

    copy that file to a usb drive to restore it later.
    (best practice is to copy the whole %AppData%\Notepad++ folder, and restore it after a new installation, as it also contains other settings.)

    for everything else you would like to preserve, e.g. if you want to clone your complete notepad++ setup, including all plugins, we would need your debug information from the notepad++ menu ? > debug info... > copy debug info into clipboard.

  • welcome to the notepad++ community, @Wings2019

    notepad++ 7.6.4 (x86 and x64) consumes about 13-14mb ram, when all plugins are behaving correctly and no documents are opened.
    (when notepad++ is only showing a new 1 tab).

    please go to ? > debug info... > copy debug info into clipboard and paste it here, to have a look at your specific setup and your plugins.

    also check if you have opened large files in your session, as notepad++ will additionally allocate the memory to the size of all files to be re-opened.

    if the memory allocation drops and rises again in a loop, there might also be the chance, that you have opened one or more large files (300mb or more) and activated view > monitoring (tail -f) on one or more of them.

  • @JVPage

    I can’t get the Doc Switcher anymore. Is there any way to get it back?

    yes. go to settings > preferences > general > document list panel and activate show.

    ps: how do you do with your >>> zoom level on status bar <<< ?
    did you file a feature request, or did you do it with pythonscript, or did you ignore it for now ? ;-)

  • Hi, @moe-skaato, @alan-kilborn, @terry-r and All,

    Of course, the fact of inserting letters, only at a specific column could be binding :-(( So, here is a new method, not based on columns ;-))

    Assuming your text, in a new tab :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset”

    Now, just append your list of letters, at the end of your text, with one letter per line ! Of course, you need to insert, at least, the 12 first letters, but you may list, for instance, all letters from A to Z

    Let’s add letters from A to P. So we get the text :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset” A B C D E F G H I J K L M N O P

    Now, using the regex S/R :

    SEARCH (?-s)^(preset)(\d+)(?=(?:.+\R){12}(.))|^(.\R)+.?\Z

    REPLACE ?1\1\3

    You should get, after a click on the Replace All button :

    presetA= “description about preset” presetB= “description about preset” presetC= “description about preset” presetD= “description about preset” presetE= “description about preset” presetF= “description about preset” presetG= “description about preset” presetH= “description about preset” presetI= “description about preset” presetJ= “description about preset” presetK= “description about preset” presetL= “description about preset”

    And if you change the Replace regex with :

    REPLACE ?1\1\2\3

    While keeping the Search regex, you’ll obtain :

    preset1A= “description about preset” preset2B= “description about preset” preset3C= “description about preset” preset4D= “description about preset” preset5E= “description about preset” preset6F= “description about preset” preset7G= “description about preset” preset8H= “description about preset” preset9I= “description about preset” preset10J= “description about preset” preset11K= “description about preset” preset12L= “description about preset”

    Of course, you can choose any list of letters, in any order and, also, the leading part of each line :

    For instance, giving the initial text below :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset” z a y b x c w d v e u f t g s h r i q j

    With the Replace regex, below ( Again, Search regex is not modified )

    REPLACE ?1Line #\2\3\t

    Here is the result :

    Line #1z = “description about preset” Line #2a = “description about preset” Line #3y = “description about preset” Line #4b = “description about preset” Line #5x = “description about preset” Line #6c = “description about preset” Line #7w = “description about preset” Line #8d = “description about preset” Line #9v = “description about preset” Line #10e = “description about preset” Line #11u = “description about preset” Line #12f = “description about preset”

    As you can see, the limit is just your imagination. With regular expressions, you can modify text in so many ways ;-))

    Notes :

    The search regex begins with (?-s), an in-line modifier, which tells that the dot ( . ) will match one standard character ( not EOL ones )

    Then there are two alternatives :

    ^(preset)(\d+)(?=(?:.+\R){12}(.))

    ^(.\R)+.?\Z

    The first alternative matches, from beginning of line ( ^ ) , the literal sting preset, stored as group 1, followed with a number \d+, stored as group 2 but ONLY IF the look-ahead is true that is to say if it exists 12 non-empty lines, with their EOL characters ( \R ), followed with, at least, one character ( a letter) on the next line, stored as group 3

    Of course, in case that your text to re-number contains more or less than 12 lines, just indicate that exact number in the search regex, instead of the number 12 !

    The second alternative simply matches the complete list of letters, at the end of your document. So a non-empty list of one-char lines ^(.\R)+, possibly followed with a last char ( .? ) before some possible EOL chars, ending the current file ( assertion \Z )

    The replacement regex, for instance ?1Line #\2\3\t, is a conditional replacement, which means that, IF group 1 exists, then it writes, first, the expression Line #, followed with the initial numbers ( group 2 ), followed with the character, taken from the list of letters ( group 3 ) and, finally, a tabulation char ( \t )

    Best Regards,

    guy038

  • Perfect thanks 1-999 is also fine.

  • @Alan-Kilborn

    The sniffling was mainly for your benefit

    i thought so, and my first thought was: how thoughtful of you :)

    as Claudia and Scott will never see it. :)

    hmmmmmh … sure about that ? what if someone else is claudia in disguise ? 😈🍏🐍

    Your guide is conspicuously missing how to set up PS with a portable N++ >= 7.6.3. Or was this discussed elsewhere?

    yes, e.g. here: https://notepad-plus-plus.org/community/topic/17256/guide-how-to-install-the-pythonscript-plugin-on-notepad-7-6-3-7-6-4-and-above/1
    or here: https://notepad-plus-plus.org/community/topic/16942/pythonscript-any-ready-pyscript-to-replace-one-huge-set-of-regex-phrases-with-others/12

    but never as a stand alone guide, because apparently portable users usually know how to install it.

    if it get’s asked again, i, or anybody else, might make a new guide about that.

    (ps: in other words: i’ve completely forgotten that, while writing the guide … but hushhhhhhhh, dont tell anyone 😉 )

  • @A-Kraw

    Isn’t putting the whole application to ProgamData a risk from the security perspective?

    yes it is, as the respective users have permission to modify that location, hence also the ability to install plugins without administrative rights.

    but in scenarios like these, where the enterprise authority explicitly grants specific users the permission to install plugins without admin rights, shifting notepad++ or any other application to %ProgamData%, presents a lesser security risk, than to give every concerned user local administrator permissions.

  • Thanks, that worked a treat!

Internal error.

Oops! Looks like something went wrong!