• Styles keyword highlighting stopped working....

    5
    0 Votes
    5 Posts
    2k Views
    C

    @PeterJones Thanks for all your assistance, man. I was NOT using global overrides for foreground and background color on the original installation but something caused everything the language styling not to work.

    However, I did remember this incorrectly when I used the standalone install and mistakenly turned those both on.

    On the standalone installation, when I turned these two options off (even with my original customized stylers.xml file) the language syntax highlighting works again.

    As a test, I opened my old install again and it doesn’t have the global foreground and background on, yet the syntax highlighting still does not function.

    So while the original VDI shared install still does not work, you have given me a solution that does work. Thank you for your help!!

  • Incorrect display of UTF-8 in the console.

    10
    0 Votes
    10 Posts
    2k Views
    Alan KilbornA

    @Sergey-Titkov

    I’m not sure you or any of the previous posters have answered the question posed by the OP.
    But, since the OP hasn’t returned to post and clarify, we don’t know (and it doesn’t matter since OP was the one asking for help).

  • Dark Mode in v8.1.1 doesn't seem to work.

    2
    0 Votes
    2 Posts
    290 Views
    Jack BerkhoutJ

    Can’t edit, so reply.

    OK, I found it, it is not under Settings > Style Configurator, but under Settings > Preferences > Dark Mode.
    Finally Notepad++ got it!

  • Strange Python function list issue.

    7
    0 Votes
    7 Posts
    517 Views
    PeterJonesP

    @Alan-Kilborn said in Strange Python function list issue.:

    Is a note needed in the user manual

    submitted as PR#256

  • search multiple string from a directory

    2
    0 Votes
    2 Posts
    266 Views
    Alan KilbornA

    @dinesh-babu-0

    There’s some nice stuff on how to do that HERE.

  • Missing OpenVPN .ovpn syntax highlighting

    2
    0 Votes
    2 Posts
    487 Views
    PeterJonesP

    @Helix751 ,

    Couldn’t find a more suitable section to request a syntax highlighting for .ovpn files

    This forum is for discussion, not for feature requests. If you explore the Forum, you will easily find the FAQ section of this Forum, which has an entry called “FAQ Desk: Feature Request or Bug Report”: that FAQ entry tells you how to make a Feature Request.

    That said, Notepad++'s built-in syntax highlighting (like the C++, HTML, Python, etc) are inherited from the Scintilla project (Notepad++ uses some Scintilla IP under the hood); Scintilla long ago stopped adding new built-in syntax highlighters, so Notepad++ hasn’t added new built-in highlighters in quite some time.

    At this point, the Notepad++ developers encourage users to make use of one of two existing features of Notepad++ to get more syntax highlighting:

    Notepad++ comes bundled with the User Defined Language (UDL) system, where you can define your own simple keywords and comment syntax for syntax highlighting, code-folding, and the like. This is the most-commonly used feature for defining your own syntax highlighting Notepad++ has the capability to accept plugins, and it’s possible to develop a lexer / syntax highlighter plugin – fewer have made use of this, but you can see at least one in the Plugins Admin called “GEDCOM Lexer”

    My guess, since it’s a config-file syntax, is that UDL will serve your needs. It’s not really that hard to get started writing your own UDL.

  • User Defined Language Different Number Styles

    4
    0 Votes
    4 Posts
    2k Views
    EkopalypseE

    @David-Mc said in User Defined Language Different Number Styles:

    is there a way to say close a delimiter on the last number digit before another character type?

    Not that I know of.

  • User defined language: Restrict line length

    2
    0 Votes
    2 Posts
    409 Views
    Alan KilbornA

    @Frank-Helk

    While you can’t restrict line-length, you can set something up to get a visual indication for problem lines; an example setup:

    43a97056-b81c-4011-975c-c1cd8083b954-image.png

    Produces a look like this:

    8830f27d-bf23-411f-9481-8c9db3c10d5a-image.png

    which clearly identifies long lines in cyan color. The color can of course be changed to whatever you like.

    If you’d like something that will explicitly inform you of long lines, I can assist you in writing a script to do so. Post back if you’d like to try this approach. Here’s an existing script that might help: https://community.notepad-plus-plus.org/post/35567

  • macro recorder source code

    3
    0 Votes
    3 Posts
    563 Views
    Uncle BuddyU

    @PeterJones , thanks for guiding me to the source code and Scintilla’s macro-recorder. I appreciate the effort you put into your response.

  • On 'open with' or 'edit' after right-click

    2
    0 Votes
    2 Posts
    183 Views
    PeterJonesP

    @Simon-Ewins ,

    Any thoughts on how to fix this?

    You’re going to have to describe the problem better than that.

  • Or in regular expression unable to use in search

    4
    0 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @Dinesh-Babu

    Hard to tell what you are REALLY doing from that.
    It appears you have extra space characters in there maybe?
    Maybe you have (dog | cat) instead of (dog|cat) ?
    Spaces ARE significant in regular expressions, unless you use the (?x) option in front, e.g. (?x)(dog | cat)

    Anyway, alternation (the | regex operator) definitely works fine:

    2e65cd6d-abca-421a-98d9-42dcbd22dc57-image.png

    I dropped the wrapping parentheses for the example, but it works just as well with them as without them.

  • Macro Language

    5
    0 Votes
    5 Posts
    5k Views
    Jack Mallord 0J

    the action type in the recorded message seems to be either 0 or 1, then the message ids follow:
    2170 putchar
    2180 delchar
    2300 down
    2306 getchar
    2326 backspace
    2451 end
    2452 shift-end
    2453 home
    I found that i could combine 2170 type messages with string values, shortening the macro somewhat, making it more readable; it seemed that i could also replace 10 delchars (2180) with " " but that was not consistent.

  • expression reg \t

    5
    0 Votes
    5 Posts
    348 Views
    claudio pergolinC

    @claudio-pergolin said in expression reg \t:

    thanks. it’s working

  • Notepad++ and WinPE

    3
    0 Votes
    3 Posts
    1k Views
    PeterJonesP

    @PeterJones said in Notepad++ and WinPE:

    an external utility like sysinternals.com’s Process Explorer might list the DLLs that Notepad++ has active.

    With a portable v8.1-64bit with no non-default plugins installed, Process Explorer shows me:
    948b7dda-7687-4f2b-aebc-be0d1c2c2aaa-image.png

    4f44e956-b2b8-4bd1-a00d-f8b6658edddf-image.png

    (two screenshots because it was too many for my monitor)

    I don’t know if that will help you or not.

    Sorry.

  • Recent autosave for some files but not others

    3
    0 Votes
    3 Posts
    929 Views
    Alan KilbornA

    @PeterJones

    Perhaps the non-autosave portion of your posting could be adapted for the user manual (if not already covered in such depth there). Some good information in your posting.

  • 1 Votes
    11 Posts
    558 Views
    Alan KilbornA

    @Regina-Oswald said in Problem with find / replace with wildcards. Will put in the same Regular expression twice:

    but not the special goal with twice repleacing of the same regular expression

    I’m actually not sure what you are meaning by that.
    I suspect it might mean something very specific to the replacement you wanted to do.
    The documentation is only going to describe the capabilities; it can’t possibly describe all possible application nuances of those capabilities.

  • My first user defined language

    3
    0 Votes
    3 Posts
    274 Views
    John DaviesJ

    Thank you. That’s a great start.

  • Recovering an Unsaved File that was Closed

    4
    0 Votes
    4 Posts
    1k Views
    Alan KilbornA

    @Ekopalypse said in Recovering an Unsaved File that was Closed:

    especially if you can remember the name of temporary file

    Well, if you named your tab zebra for example (surely nobody would let a long-term, critical data file sit there for a long time with a name like new 2), you’d have to look for a file to recover named like this:

    zebra@2021-06-21_164728

    or – gasp – even:

    new 2@2021-06-21_164728

    In other words, expect that type of naming, DON’T just go looking for something with only the base name, because I don’t think you’ll find it.

  • Optimization for large files

    5
    0 Votes
    5 Posts
    1k Views
    gstaviG

    Possible, maybe.
    Likely, no!

    Applications that handle huge files are designed for that specific goal and there are lots of tradeoffs to be made in the design. The majority of Notepad++ users are developers that deal with files well under 1MB. Many of them depend on plugins that interact with Notepad++ and Scintilla in a pretty direct (non-abstract) way. Redesigning Notepad++ and Scintilla to handle huge files quickly will almost surely break many of these plugins and hurt a much larger portion of Notepad++ users than the people who want to open huge files.

    Your need is real but the solution should be to find the right tool for the job rather than expecting the wrong tool to evolve.

    BTW, there is also a very big difference between viewing a huge file and editing a huge file. There are lots of good viewers and fewer good editors. Huge files are always auto-generated (typically logs) what is the point of editing them? When I dealt with such the concept was usually to find the area of interest and trim 1M lines into 10K lines of interest that Notepad++ handles easily.

  • Customize toolbar button can't display icon.

    5
    0 Votes
    5 Posts
    2k Views
    artie-finkelsteinA

    Thank you for the correction on the ability to change back.

    To be clear: I define the action of the editor in changing anything that I didn’t explicitly select as ‘forcing’; as it forces a change I didn’t make. It does not lock the change; but it does go beyond ‘Enable dark mode’ and makes modifications to settings contained in a different selection dialog.

    Again, thank you for clarifying the interaction between mode selection and icon selection.