• shortcuts.xml With UTF-8 BOM Fails to Load

    7
    1 Votes
    7 Posts
    546 Views
    mkupperM

    <BOM/>@Bob-Smith-0, I am astonished that you did not preface your message with a BOM!

    As you seem to have already recognized the issue I suspect it would be enough to add two more tools to your bag, one that inserts a BOM, and another that removes it You can then do your desired magic on Notepad++'s config.xml.<EOM/>

  • Need help linking CSS with html

    3
    0 Votes
    3 Posts
    266 Views
    CoisesC

    @tilsy637

    If you mean that in your text href="css/rr.css" Notepad++ does not render css/rr.css as a clickable link, that is expected. Only complete URLs (with the http:// part, for example) are clickable. Even though what you’ve written is a relative URL in the context of HTML, Notepad++ doesn’t understand HTML and can’t recognize it as a link. You have to navigate to it on your own.

    If you mean it doesn’t work when you open it in a browser, then as @PeterJones wrote, this is the wrong forum.

    If you meant that Notepad++ doesn’t apply the style information, it will not. Notepad++ is strictly a source (plain text, with some syntax highlighting) editor; it can’t do “what you see is what you get” editing for HTML.

  • How to change apostrophe to letter g as a whole word

    3
    0 Votes
    3 Posts
    289 Views
    Mohamed MohamedM

    @PeterJones Thank you, it works

  • How to save the marked lines

    2
    0 Votes
    2 Posts
    519 Views
    PeterJonesP

    @Chetan-S-R ,

    Notepad++ does not save Bookmarks or the other styles.

    However, some years back, @Alan-Kilborn shared a script for the PythonScript plugin, which will allow you to save Bookmarks or styles, in this post in the “Style token not saved” conversation.

    So you would grab the script from that discussion, and follow our FAQ for installing/using PythonScript scripts

    Since that script was focused on Style Tokens, and not the Bookmarks, I am not 100% whether it would work “out of the box” for you, or whether you’d have to add in a check for the Bookmark code as well… It’s been too long since I used that. However, Alan can probably chime in about that.

  • NPP won't show autosave plugin.

    2
    0 Votes
    2 Posts
    181 Views
    bulrush15B

    @bulrush15 I got it working when I installed NPP 8.6.5. I had a “regsvr” error the first time I installed it and NPP never really updated. It’s updated now.

  • The file will not open.

    3
    0 Votes
    3 Posts
    291 Views
    bulrush15B

    @최민정 What’s your operating system name and version?

    There could be a bug with this file being locked. I’ve seen this before on windows for other types of files. Reboot the machine and see if that releases the file lock.

  • Find Window not popping up for me to enter something into to find.

    6
    0 Votes
    6 Posts
    492 Views
    TBugReporterT

    @PeterJones said in Find Window not popping up for me to enter something into to find.:

    a second Ctrl+F will re-center it

    A useful tidbit that I failed to notice in the manual - thank you.

  • Two Questions About Shortcut Mapper

    8
    1 Votes
    8 Posts
    594 Views
    PeterJonesP

    @Bob-Smith-0 ,

    There are 11 keys for which I had to scramble to find the corresponding virtual keycode.

    Those keystrokes are mentioned in the FAQ: List of Notepad++ key combinations, available for shortcuts – for example, VK_OEM_1 is in the “third part” in that FAQ. (Search that page for third part or VK_OEM_1 to find it)

    ----

    and Forum related stuff:

    copied from a wensite I can’t mention here

    No one had upvoted you yet, so you could not post links to external sites. (Otherwise, the forum just becomes an open invitation to spam bots; the amount of spam we have to deal with has dropped significantly since the link-reputation rule was put in.)

    I tried replying to the previous message to thank the folks who helped me, but was told I needed a higher reputation.

    You needed a higher reputation to post an external link; if it weren’t for that link, you would have been able to reply. I have used moderator powers to merge this back into the original discussion.

    I tried upvoting to improve my rep

    You cannot improve your own reputation yourself (otherwise, spammers would just upvote themselves or each other to get around this limitation).

    I normally try to upvote well-asked questions, but forgot in your case. I have upvoted your posts, so things should be easier for you going forward.

  • 0 Votes
    7 Posts
    406 Views
    th chT

    @PeterJones
    🙄It looks strange that an app with many abilities like notepad++ hasnt this simple ability.
    I guess for the same reason i cant open notepad++ (new document) with a selected theme.
    It will be nice these 2 abilities to added at an update.
    Thanks for your time and explanation.

  • Colored intermittent blobs

    4
    0 Votes
    4 Posts
    290 Views
    mkupperM

    For now I have turned DirectWrite off per @Coises’ advice. I had turned DirectWrite on per this thread from April 2023

    The video drivers seem to be up to date, or at least Windows Updates, plus “check for updates” at the driver level claim that things are up to date. There was an update for my monitor which I installed.

    I suspect it’s something triggered by Notepad++ or Scintilla. If it pops up again I’ll see if the glitch gets cleared by clicking with the mouse, etc. I normally use Alt+Tab to switch applications.

    I don’t feel like uninstalling Windows updates per what @Ekopalypse dealt with as the blobs issue has been going on for several months. My first screen shot of one was on February 8th. The blobs don’t happen often and when I notice one they have been “fragile” in that they vanish as I try to do anything.

    At least I have been able to capture them using screen shots. That in itself proves they exist and that Windows knows they are on the screen meaning they are not artifacts created the video hardware and/or monitor.

    The unrelated missing right parentheses issue was quickly resolved by @donho.

  • "Exception reason: Access violation" in notepad++

    9
    0 Votes
    9 Posts
    2k Views
    kot kotK

    @PeterJones
    Many thanks for Your help :)
    I’ll try to fix it myself

  • Help with the construction of a regular expression

    4
    1 Votes
    4 Posts
    409 Views
    GrafG

    Thanks for the tips. Especially for the link with examples of text search in a separate zone. I broke my head, but I found my own option.

    (?-si:<connection connection=".+\n.+class="ship.+owner="player".+\n|(?!\A)\G)(?s-i:(?!<\/people>\n).)*?\K(?-si:(<skill.+\n)+)

    But another problem has emerged. as I understand it, due to the large file size (~500 MB and ~13.5 million lines) I get an error if there are about 1 million lines between the areas with the data I need. That is, for example, I search first class="ship.+owner="player" throughout the file and get a normal result - 32 matches in the entire file.

    b9631a07-3395-4af8-8d1b-986b63a77044-image.png

    But if I try to execute my regular expression from the beginning of the file, there will be a regular expression error message (invalid regular expression).

    If i place the cursor inside any of the zones and use marks, then all the matches from all the zones will change if, as I found out, there are less than 1 million lines between them.

    Or if i place the cursor inside the zone with the desired text (but after which, the next zone of interest will start after at least a million lines) and sequentially perform “find next”, then the search will continue normally until it reaches the </people> tag, after which, as I understand it, the search should begin the next zone, however, will again receive a regular expression error message.

    I tried to find out what the error is on various online resources for checking regular expressions, but they can’t cope with such a volume of strings. I also did not find offline tools for such a task, maybe I was looking for it badly.

    And as I understand it at the moment, the problem is not in the regular expression itself, but in the limitation of the search engine. Maybe someone has come across something like this or knows a suitable tool?
    At the moment, I’m thinking about trying to write something suitable for this task in python.

    P.S. How can I hide anything under the spoiler?

    P.P.S. X4 foundations let me go, I’ve been racking my head for the second week))

  • Replace tab spaces only inside quotations.

    4
    0 Votes
    4 Posts
    363 Views
    guy038G

    Hello, @uhax-the-grey, @coises and All,

    Your solution, @coises, seems to work only if :

    A single "......" section exists in current line

    Line-ending char(s) end(s) the current line

    @uhax-the-grey, the difficulty to achive that general goal is that the ending char of a section is the SAME char than its beginning char ( the " character ) :-((

    So I propose to split the problem in 3 successive steps :

    First, we change any couple of " chars, of a single section, with two different control chars ( \x02 and \x03 )

    Secondly, we use the generic regex mechanism, described here, to replace any \t character by a space char, in "............" sections only

    Finally, we restore the two original " delimiters for each section

    This method leads to the 3 successive regex S/R below :

    SEARCH (?s)"(.*?)"

    REPLACE \x02\1\x03

    Then :

    SEARCH (?:\x02|(?!\A)\G)(?s:(?!\x03).)*?\K\t

    REPLACE \x20

    Remark : Do not forget to move the caret ( cursor ) at the very beginning of the current file, before running this second S/R !

    Finally :

    SEARCH [\x02\x03]

    REPLACE "

    Whatever the position of the TAB chars and the " deleimiters, thoughout the text contents, this method should always work properly !

    Best Regards,

    guy038

  • Put first word in each line in quotes

    3
    0 Votes
    3 Posts
    262 Views
    UHAX The GreyU

    @Ekopalypse That worked, thank you!

  • Pluggin. How readding crurent document Line per Line

    2
    0 Votes
    2 Posts
    178 Views
    CoisesC

    In what language are you writing your plugin?

    What do you have so far?

    The functions you will need are described here and you will probably need at least some of the functions described here. But from your message, I suspect you are not that far along yet.

    Start here and tell us when/where you get stuck.

    If you read that and your reaction is that it sounds far too complicated, it could be that you want to write a script, not a plugin. If you know Python, check out the Python Script plugin for Notepad++.

  • Incorrect color to property css rotate

    2
    0 Votes
    2 Posts
    206 Views
    Mark OlsonM

    @Yamir-Smith
    You can go to the langs.xml file in your application data directory (which is usually AppData/Roaming/Notepad++ but may also be the same directory where your notepad++.exe file lives), navigate down to Keywords name="instre1" element inside the Language name="css" element, and add the word rotate where it belongs in alphabetical order in the long list of keywords there (for me, it has to be between right and rotation).

    If you’re interested, you can open a PR so that this change can be incorporated into Notepad++ permanently. While you’re at it, you can see if there are other CSS keywords that are missing and add those as well.

  • Ctrl+Alt+S Save As... stopped working

    11
    0 Votes
    11 Posts
    2k Views
    M

    I unfortunately don’t have the permissions to run hotkey-detective on this system.

    I’m just going to settle for using Ctrl+Shift+S for Save As…

    Thanks everyone for help!

  • Interactive debugging scripts using PythonScript plugin

    3
    0 Votes
    3 Posts
    597 Views
    Stefano OrlandoS

    @Mark-Olson I already knew that I could use print and other passive mechanisms like logging. I tried with pdb and the script seems to get on break, an error message missing stdin is displayed on the console but I can’t find a way to enter commands for pdb

  • How to ignore certain characters in searches

    3
    1 Votes
    3 Posts
    884 Views
    Amanda HamiltonA

    @PeterJones ,

    Thank you very much! That does indeed work. I have also heard back from the CLAN developer, who suggests I could use a CLAN program to generate long tiers–but it does make things very hard to read in CLAN. Your solution is probably better. Thank you!!

  • How to run it with Google Web pages

    8
    0 Votes
    8 Posts
    818 Views
    최민정

    @mkupper

    Thanks a lot.