版面

  • Announcements regarding our community
    315 主題
    5k 貼文
    donhoD

    @xomx said in Notepad++ release 8.9.3:

    v8.9.3 (Scintilla) EOL regression: #17920

    Thank you for the heads up.
    It’s indeed a regression, but not a critical one.
    Let’s wait one more week, if no critical regression or issue is reported, the auto-updater will be triggered for the release v8.9.3.

  • Frequently Asked Questions and Guides (about Notepad++ and this Forum)

    38 主題
    63 貼文
    PeterJonesP
    Themes in v8.8.9

    With the release of v8.8.9, there is a new feature which automatically updates the active Theme if it is missing Style Configurator settings for any GUI elements, or missing any Languages or any Style entries in existing Languages. This is a long-needed feature, so that as Notepad++ adds new styles for the Style Configurator, you’ll be able to set them, even if your theme hasn’t been updated since before those styles were added. (Before now, if you switched to a theme years ago and set any custom color or user keyword or custom file extensions for a built-in language, it would never update the theme, no matter how many times you update Notepad++ in the meanwhile. This v8.8.9 feature is able to correct that issue, and you will be able to use the Style Configurator to set the colors of any new styles going forward, as soon as you upgrade to a Notepad++ executable that supports the new style.)

    Unfortunately, the v8.8.9 implementation included some annoying growing pains: the procedure always uses the same colors that those styles have in the stylers.model.xml file (ie, the default “light mode” colors), even if you are using a dark theme, which can make for glaring color issues: on Languages that get new styles added, the text that should be that new style can end up as black-on-white text, even if the rest of the text has a dark background; and if the theme was old enough, some GUI elements (like the Bookmark margin and Change History margin, between the line numbers and the text being edited) may clash with the surrounding GUI elements.

    In the future v8.9 this issue will be fixed, so people who had an older theme and use v8.9 will see new styles show up using the default foreground and background colors of that theme, so they won’t clash: it might not highlight the new keywords, for example, but at least it won’t look worse than it used to.

    But unfortunately, once you run it in v8.8.9, your theme will no longer have those entries “missing”, and the glaring white background will be saved. The instructions below will help you with that:

    Instructions

    These instructions are only needed if you ran Notepad++ v8.8.9. If you upgraded from something earlier to v8.9-or-later, you do not need these instructions.

    Download the updated theme file(s) from the Source (see Download Source below) Depending on circumstances, decide whether you need to update the installation-directory theme, the user-config-directory theme, or both If you have a portable version of Notepad++, without using the Cloud directory or -settingsDir, then you need to just follow the instructions to Update Theme(s) in User Config Directory If you are not using a portable version of Notepad++, then it is recommended to follow Update Theme(s) in Installation Directory first, and then decide based on the next item whether to continue or not If you have any theme file(s) in the user-configuration directory (whether it’s %AppData%\Notepad++\themes\ or the Cloud directory’s .\themes subdirectory or the -settingsDir’s .\themes subdirectory, then you should follow the Update Theme(s) in User Config Directory for those.

    Please note: when correctly following step 2, you may need to follow multiple sets of instructions. Please read and understand each point under step 2 to make the right changes.

    Download Source

    The installer themes in the source code have been updated to have all the styles needed (to be able to fix the problems from v8.8.9). You can go here to grab the theme file(s) you want: https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/PowerEditor/installer/themes.

    Update Theme(s) in Installation Directory

    Except when you have a portable version of Notepad++, you will generally need to follow this set of instructions for the themes that come in the installation directory. In a normal installation of Notepad++, the installation will be in c:\program files\Notepad++ directory or equivalent, and the installation-directory themes will thus be in c:\program files\Notepad++\themes. (See the Instructions section above for the decision process to know for sure whether to use this section.)

    Exit Notepad++ Go to the URL mentioned in the Download Source section (above), and download the raw version of your Theme file(s) Use Explorer to go to c:\program files\Notepad++\themes\ directory Copy the downloaded Theme(s) into that directory, overwriting what’s there When you run Notepad++ next time, it will use the updated theme, and the glaring color issues should be gone.

    If you have customized your theme with user-keywords or user-extensions, then this won’t be sufficient, because Notepad++ gives priority to the copy from the user-settings directory. (See the Instructions section above for the decision process to know for sure whether this section is sufficient for your needs.)

    Update Theme(s) in User Config Directory

    If you have your Theme file in the user-settings directory (AppData hierarchy or Cloud directory or -settingsDir directory) for any reason – whether you customized it by changing the font or color or added user-defined keywords or user-defined extensions using the Style Configurator, or whether you intentionally copied or downloaded a Theme into the user-settings directory, or whether it’s there and you don’t know how or why it got there: under any of those circumstances, then just replacing the theme in the installation directory won’t be sufficient. (See the Instructions section above for the decision process to know for sure whether to use this section.)

    Exit Notepad++ If you haven’t already, go to the URL mentioned in the Download Source section (above), and download the raw version of your Theme file(s) Use Explorer to go to %AppData%\Notepad++\ (🛈) or to wherever your Cloud Directory or -settingsDir option point to There should be a themes subdiretory in that directory, if you have customized your Theme. Rename your old custom theme to <themeName>_OLD.xml (like khaki.xml becomes khaki_OLD.xml) Copy the downloaded version of the Theme into that directory (for example, khaki.xml) Start Notepad++. It will use the updated version of the theme, but your customizations will be temporarily missing. Open %AppData%\Notepad++\themes\<themeName>.xml and %AppData%\Notepad++\themes\<themeName>_OLD.xml In the _OLD copy, search for ext="(?!") in Regular Expression mode. The value between the quotes will be the user-extensions for that language. Copy any that you find in the OLD file to the language’s equivalent entry in <themeName>.xml In the _OLD copy, search for (?<!>)</WordsStyle> in Regular Expression mode. Any values between the > and the </WordsStyle> should be copied to the equivalent location in the <themeName>.xml file. If <themeName>.xml just has <WordsStyle name="..." ... /> without having a </WordsStyle> closer, you can replace the /> with a > and the list of keywords, then the closing </WordsStyle> Save <themeName>.xml Exit Notepad++ When you run Notepad++ again, it should now include your customizations again. Native Feature compared to ConfigUpdater plugin

    The ConfigUpdater plugin was introduced as a testbed for some of the ideas that made it into the v8.8.9 native implementation. As such, if you are in v8.8.9 or newer, you no longer need the ConfigUpdater plugin. But if you are before v8.8.9, and waiting for the v8.9 fix to the Notepad++ feature before upgrading, then using ConfigUpdater while in v8.8.8-or-older will help you get to a point where if you did change your mind and upgrade to v8.8.9, it wouldn’t make the glaring UI clash and black-on-white text in dark themes.

    JavaScript in v8.9 Themes

    In v8.8.8 and earlier, Notepad++ would magically use the embedded javascript (JS-in-HTML) styler settings if the javascript.js (*.js) language didn’t have defined styles in a given theme, making it appear to JavaScript users that their theme had the standalone JavaScript colors defined. The v8.9 fix, which filled in default FG/BG colors for all javascript.js styles for themes that were missing javascript.js made it appear to the JavaScript users that v8.9 broke their theme, when it really meant that their already-broken theme was just being “fixed” in a different way. Updated themes are being submitted to the Notepad++ codebase, so that javascript.js will use similar colors to embedded javascript, so they won’t get the surprise color change if they upgrade from v8.8.8-or-older to v8.9.1-or-newer.

    If you already updaded to v8.9, and JavaScript *.js files look like they have stopped syntax highlighting then you will need to follow instructions similar to the Update Theme(s) in Installation Directory and/or Update Theme(s) in User Config Directory

    The PR has been merged, so you can just use https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/PowerEditor/installer/themes as the source for the updated themes (the same link as mentioned above) You can just copy the entire <LexerType name="javascript.js" desc="JavaScript" ext="">...</LexerType> section from the downloaded theme(s) and paste it overtop that same section in your Config Directory and/or Installation Directory theme file(s), then save and restart to get it to take effect.
  • Notepad++ discussions that don’t fit in other Categories

    4k 主題
    22k 貼文
    PeterJonesP

    @DougB-MFY ,

    Not exactly, but you might get “close enough”

    With keyboard+mouse, the shift+scrollwheel would allow you to horizontally scroll without clicking (but having to use the scrollwheel isn’t truly “keyboard”) [END] [space] [backspace] seems to work for me, but it introduces a “fake edit” to get it, so that might annoy you

    One of those might be “close enough” for you. But there isn’t a keystroke that does it on its own

  • 10k 主題
    54k 貼文
    PeterJonesP

    @Phil-Shearer said in Download Status Page Out of Date:

    I’ll just ignore the report for now and hopefully it will all be good again in a week or two.

    … or you could go to the official download site at https://notepad-plus-plus.org/downloads/v8.9.3/, and get the v8.9.3 installer manually, rather than waiting for it to be triggered for auto-update. But it’s up to you.

  • Technical discussion of building or contributing to Notepad++ or Plugin codebases

    1k 主題
    9k 貼文
    guy038G

    Hello, @coises,

    You said :

    When the search dialog is narrow (typical if the docking dialog is used and docked to the left or right), the status message can overflow the available space. I added ellipsis to the message and a balloon tip on hover to show the whole message when it overflows.

    Could you share a screenshot that illustrates this behavior as I have not been able, so far, to see any ellipsis char and any ballon tip !

    Now, is this a bug or I did not understand the logic ?

    Let’s suppose this text in a new tab :

    This is a test This is a test This is a test This is a test This is a test This is a test

    Move to this new tab

    Put the caret on the 4th empty line, without selecting anything else ( IMPORTANT )

    Run Plugins> Search++ > Search...

    Select the Plain button

    SEARCH is

    Check the Match case option ONLY

    Click on the mark of the Find All button

    Choose the Select > Select Before in Whole Document or the Select Before option

    => No message and no matches ??

    I was rather expecting the message Selected 6 matches before current position

    Replace the caret on the 4th empty line , without selecting anything else ( IMPORTANT )

    Click on the sign of the Find All button

    Choose the Select > Select After in Whole Document or the Select After option

    => Any is string is matched in entire document

    => Message : Selected 12 matches after selection ??

    I was rather expecting the message Selected 6 matches after current position

    Finally :

    Replace the caret on the 4th empty line , without selecting anything else ( IMPORTANT )

    Click on the sign of the Find All button

    Choose the Select > Select in Whole Document option

    => Any is string is matched in entire document

    => Message : Selected 12 matches

    This time, the results are coherent !

    Now, @coises, to my mind, it would be interesting to change the layout, below :

    Find ▼ Count ▼ Find All ▼ □ Match Case □ Whole word only

    By this one :

    Find ▼ Count ▼ Find All ▼ Select ▼ Mark ▼ Show ▼ □ Match Case □ Whole word only

    In addition, this would give some more default values available for the Select, Mark and Show options ! What are your thoughts on this ?

    A nice thing regarding the Search Mark feature is that you can use the native N++ Mark feature to perform additional actions :

    You may clear all marked text with the Clear all marks button. Of course, you can simply use the Tools > Unmark All Text of Search++

    You can use the Copy Marked Text of the Mark dialog. But, while trying to get a Search++ equivalent behavior, I suspected an other bug :((

    Let’s use this text in a new tab

    This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

    Move to this new tab

    Run Plugins> Search++ > Search...

    Select the Regex button

    SEARCH ^.+

    Click on the sign of the Find All button

    Choose the Select > Select in Whole Document option

    => The 4 lines are selected

    Then, in order to mimic the Copy Marked Text button, you just have to do a Ctrl + C action. So OK, so far !

    Now, click anywhere to cancel the selection

    Select this ABCDE string

    Copy in the clipboard with a Ctrl + C action

    Move to the new tab

    Run Plugins> Search++ > Search...

    Select the Regex button

    SEARCH ^.+

    Click on the sign of the Find All button

    Choose the Mark > Mark in Whole Document option

    => The 4 lines are marked

    -Then use the Tools > Marked text → Selections option

    => The 4 lines are ALSO selected

    Run a Ctrl + C action to put this selection in the clipboard

    Then, run a Ctrl + V action => The clipboard wrongly contains the string ABCDE

    So, despite of the Tools > Marked text → Selections action, nothing can be copied !?

    Regarding the marked strings, you probably know that you can go through all of them with the Ctrl + 0 and Ctrl + Shift + 0 shocrtcuts on main keyboard ( Refer to the Search > Jump Up > Find Mark Style and Search > Jump Down > Find Mark Style options )

    And indeed, a Ctrl + 0 action moves to the next marked text, whatever that the mark operation was due to Notepad++ or Search++

    Unfortunately, a Ctrl + Shift+ 0 action does not move to the previous marked text :-(( Could you confirm, @coises ?

    However, note that commands Ctrl + 1 to Ctrl + 5 and Ctrl+ Shift + 1 to Ctrl + Shift + 5, to navigate between marked strings, work as expected if you change the Marked Style in Settings accordingly.

    Last thing :

    In the Tools menu, I noticed that the Unmark All Text button ONLY clears hhe marked text which is presently defined in the Settings dialog

    So, you could, either :

    Add a color to identify which marked text will be cleared

    Simply clears any marked text whatever its style

    Change the single option :

    □ Unmark all text

    in the two options :

    □ Unmark present styled text □ Unmark all styled text

    Best Regards,

    guy038

  • Security shouldn't be the privilege of rich people
    70 主題
    346 貼文
    H

    @Coises

    Thank you, Coises, for your helpful reply. I truly appreciate your support and guidance.

    Regards,
    Harmandeep Singh Kandhari

  • All the issues (publications/questions) about binary translation
    76 主題
    480 貼文
    U

    @xomx
    Thank you very much for the work you have done, which will lead to improvements in Notepad++ in the future.
    I am very grateful to you.

  • Say fuck to Notepad++ here, and only here
    93 主題
    546 貼文
    Fii ErtF

    @donho
    真正荒诞的事实:
    自诩「用真正的中文」,却连法庭直播都不敢。
    选输立法院,心碎崩溃,恼羞成怒,大罢免大便32比0,白费十二亿公帑。自己承认自己是「纳粹」,模仿希特勒组织冲锋队,解散全部在野党。自己贪污怕被人民发现,操纵舆论和司法迫害诬蔑没有贪污的人贪污,只因他是在野党领袖。你们恐惧下次选举,输给在野党。

    反观你所谓「用虚假的中文」,是世界第二大经济体,有法庭直播,有核能发电,AI技术远远胜过台湾。

  • No support request and bug report here, only unconditional praise and worship

    2 主題
    7 貼文
    Maddox ArmstrongM

    @FreeMeow I goon to Notepad++ :P

  • Share personal tips and cool uses for Notepad++, and similar

    59 主題
    221 貼文
    William4565W

    Its been 5 years I’m using notepad ++ and for me it was and it is very useful tool.

  • Computer/Programming Jokes are welcome here