• VisualStudio C#: Custom LangType for the NotepadPPGateway

    Locked
    2
    0 Votes
    2 Posts
    565 Views
    EkopalypseE

    @KSI-JHoward

    don’t have a samle for c# but here is described what needs to be done and if you use, by any chance, the python script plugin in its latest version, check the samples for ColumnLexer and LogfileLexer - not the EnhancedPythonLexer example as this uses a different technique. Used to, as the name suggest, enhance an existing lexer rather than writing a new lexer.

  • 2 colorations syntaxique au sein d'un même fichier, possible ?

    Locked
    5
    1 Votes
    5 Posts
    1k Views
    EkopalypseE

    @amkp-gamy

    The html lexer is one of the few, if not the only one, lexers which uses multiple lexers
    under the hood. It styles html, js, perl, vbs, python and I assumed it does CSS as well
    but obviously this is not the case. At least with the current used scintilla version but
    I don’t know if a newer scintilla version would have CSS integrated into html lexer.

    Sorry, but I don’t think that there is a way to make two builtin lexers working at the same time. What one could try is to use a technique like described here but to be honest I haven’t much experience in css to understand its basic layout meaning. If you want to discuss this further let me know - will be online gain in about 7-8 hours.

  • Change from 32-bit to 64-bit?

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Meta ChuhM

    welcome to the notepad++ community, @bobsage123

    if you don’t need to edit files larger than appx. 320mb, there will be no need to switch to the 64 bit versions of notepad++.
    the 32 bit version also has a larger list of available plugins, so if you plan to switch to 64 bit, you should check if all plugins you need are available for 64 bit.

    if you do however want to switch to notepad++ 64 bit (max editable file size appx. 2gb) the best practice is to uninstall your 32 bit version completely and make a clean 64 bit install:

    make sure you have saved all documents, closed notepad++, and you don’t need any specific settings or customisations you have made at your notepad++ 32 bit.

    uninstall your existing notepad++ 32 bit.

    open %ProgramFiles(x86)% in windows explorer, and delete the folder Notepad++, if it still exists.

    open %AppData% in windows explorer, and delete the folder Notepad++, if it still exists.

    open %LocalAppData% in windows explorer, and delete the folder Don_HO_don.h@free.fr, if it exists.

    open %ProgramData% in windows explorer, and delete the folder Notepad++, if it exists.

    download the npp.7.6.4.Installer.x64.exe from >>> here <<< and install it.

  • Custom AutoComplete file for XML language

    13
    0 Votes
    13 Posts
    11k Views
    Emanuele AtzaE

    @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

  • Running an HTML in Notepad++

    Locked
    10
    0 Votes
    10 Posts
    121k Views
    andrecool-68A

    @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

  • Notepad++ won't install Pythonscript extension

    Locked
    3
    0 Votes
    3 Posts
    587 Views
    Ziad AboramiZ

    Thanks so much ☺
    It works

  • 0 Votes
    10 Posts
    5k Views
    TyrantRCT

    @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.

  • 0 Votes
    2 Posts
    2k Views
    Meta ChuhM

    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.

  • Doc Switcher missing

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Meta ChuhM

    @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 ? ;-)

  • Increase by Letters, not just numbers?

    11
    0 Votes
    11 Posts
    2k Views
    guy038G

    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

  • 0 Votes
    3 Posts
    537 Views
    Christopher PhillipsC

    Perfect thanks 1-999 is also fine.

  • how do I clear find result window with keystrokes/shortcut

    Locked
    8
    0 Votes
    8 Posts
    2k Views
    Meta ChuhM

    @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 😉 )

  • Regex find single quote prefaced by a letter and followed by a letter

    Locked
    3
    0 Votes
    3 Posts
    582 Views
    John TuckerJ

    Thanks, that worked a treat!

  • Generate loops in xml templats

    8
    0 Votes
    8 Posts
    2k Views
    Per Elkjær NielsenP

    Hi guy038

    It’s a very impressive workaround you’ve come to. It’s not easy on , but it works for purposes I wanted

    At the same time, it has been very helpfull to follow your guides on using Regex, Which inspire me to try on my own to create simelar xml templates

    Many thanks and sorry the long response time

    Br Per

  • 0 Votes
    2 Posts
    442 Views
    andrecool-68A

    @Nancy-Rosenzweig

    Relative and absolute file path
    You do not know what the difference is?

  • print in windows 10

    Locked
    2
    0 Votes
    2 Posts
    488 Views
    Alan KilbornA

    @Mixads-lxl

    How is that related to Notepad++ ?

  • Simple method to move text column to another (tab) position

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Meta ChuhM

    welcome to the notepad++ community, @Æþelleo-Durkin240

    to my eyes, both of your text samples look the same.
    please use ``` as starting and ending lines, and paste your notepad++ content in between them.

    example template:

    ```
    paste your code here
    ```

    your result will now look like this:

    paste your code here

    this will preserve all tabs and spaces you use.

    note: you will notice a panel to the right of where you are typing.
    this is your preview panel, which will show you in advance, before submitting, how others will see your post.

  • Character classes don't work for me in v. 7.5.7

    Locked
    2
    1 Votes
    2 Posts
    476 Views
    Meta ChuhM

    @Meir-Goldenberg

    it would be interesting to know what you are trying to search, and where you search for it. (code example)

    notepad 7.5.7 should find every single white-space (space, tab, cr, lf, ff, vt) if you do a regex search for [[:space:]]

    does a regex search for \s work for you ?
    (this is an alternative, shorter, writing syntax for [[:space:]])

  • UDL delimiters

    6
    0 Votes
    6 Posts
    2k Views
    EkopalypseE

    @Meta-Chuh

    u+00a7 is §

    that happens if you just want to quickly answer something but didn’t read
    carefully what has been written.

    @Richard-Clink - sorry for confusion.

    Is odd, that this char isn’t working but haven’t checked source code so far.
    Will give it a try later.

  • Allow non-admin User to install Plugins with Plugin Admin

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    Meta ChuhM

    @SKoetting

    you are welcome.
    thank you for reporting back and happy deploying 👍