• 3 Beginner Questions

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    decodermanD

    @MarkInEvergreen said:

    I changed the shortcut for Launch in Firefox to Ctrl + F12. Click Run/Modify shortcut, the screen confirms the shortcut is in place and there are no conflicts. Click the cursor in an active NP++ HTML code page, do Ctrl+F12 and nothing happens.

    Click Menu, Run/Launch in Firefox and launch occurs.

    What am I missing?

    Since you’re not using a webserver to serve your files, why not open the file directly in the browser?
    Just drag and drop the html file into the browser window.
    Refresh the page when you’re done editing the file in NPP.
    CTRL+F5 force refreshes the page, omitting the caching behaviour of browsers.

    NB: Pure HTML + CSS pages don’t need a webserver to serve the page as there’s nothing to pre/process on the server for these barebone html pages. All the rendering is done in the browser.

  • Search in Files - Results

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    alfred NononsenseA

    Thought of that - here is my next question. Is there script for that un-burdening me of the pain?

    Thank you.

  • Previous session tabs

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    decodermanD

    @Manish-Kumar
    File/Recent files is where I would look first.

    NPP normally opens them again if “Remember current session for next launch” is ticked in Settings/Preferences/Backup.
    That is, if the file is accessible during NPP start. If not, the file(s) will not be opened.

  • turn on/off the line-ending symbols via script

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    FYI, I was also just reminded that @Claudia-Frank, in this other thread, had mentioned the editor.getViewWS() and editor.getViewEOL() commands, which I keep forgetting. These answer your first step of “know the current state”, so you could base the logic of whether you issue the notepad.menuCommand() based on those editor functions.

  • glyphless characters

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    If you know all of the code-points you want, you can do it through Python Script. For example, see this other thread, where I show how to include four zero-width characters in a visibility-toggle.

    However, if you want all 6400 characters in the BMP U+E000…U+F8FF range, or all the characters in the two 64K PUP ranges, I would recommend a loop…

    for codepoint in range(0xE000, 0xF8FF): editor.setRepresentation(unichr(codepoint),hex(codepoint))

    (And a similar loop for the PUP ranges, if desired)

    Hope this helps.

  • Regex assistance in Notepad++ replacing

    4
    0 Votes
    4 Posts
    2k Views
    DanailKazakovD

    Thanks, that worked great.

  • CR LF Tags and unwanted document changes

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Wolfgang-Preikschat

    not 100% but I assume that this is caused by the backup functionality.
    So you either can increase the time to do backups or disable it all.
    Settings->Preferences->Backup

    Cheers
    Claudia

  • Open files in new window

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Scott SumnerS

    @Denislav-Dimitrov

    Maybe you want one instance of Notepad++ per file? If so, change your shortcut or whatever you use to invoke Notepad++ to pass the -multInst parameter. That, with the addition of the hide-tabs configuration setting that has already been discussed, may achieve what you want.

  • help replacing

    19
    0 Votes
    19 Posts
    9k Views
    Thomas Daryl Phillips IIT

    this is everything i need for a HUGE chunk of my project.

    you saved my sanity and i appreciate it!!!

  • Replace All in All Open Documents - shortcut key does not work?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Jason-Low

    It is a long-known issue that the “underlined key” mechanism in the Find family of windows is messed up. I’ve made it less of a problem I care about by reassigning a lot of the text in the Find windows to something “better” and I remap the keys in the process. This thread discusses how to do all of that if you are interested in doing something similar: https://notepad-plus-plus.org/community/topic/11041/new-alt-shortcuts-in-the-find-dialog-for-default-english-language)

  • NP++ 7.5.1 version crashed and data lost

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    bharatraj shettyB

    not sure what the developers are thinking
    this is a well know issue
    set the default location for both options under Settings/Preferences/Backup
    better to switch to some other editor

  • Hi. Can I get some help? Please.

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Scott SumnerS

    @Vasil-Georgiev

    2 pieces of advice:

    Be sure you know what you are doing If you are confident of #1, use HxD editor, NOT Notepad++, to “change some things”
  • Supporting for Vietnamese combines encoding in Windows

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello, @shhlkien,

    Claudia is right about it : your present version of the Monaco font cannot reproduce the glyph of the character ( “LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE”, of Unicode code-point 1ED5 )

    This character is part of the Unicode Latin Extended Additional block, which describe 256 characters, from Unicode code-point 1E00 to Unicode code-point 1EFF. Refer to the link, below, to get the complete list of these characters

    http://www.unicode.org/charts/PDF/U1E00.pdf

    Now, I found out, a nice monospaced font, named Monaco for Powerline, with Euro sign and slashed zero, proposed by Daniel Shæfer ( alias epegzz ), which works on Windows configurations and, probably, on OSX ones ! You can download it from the link, below :

    https://gist.github.com/epegzz/1634235/raw/4691e901750591f9cab0b4ae8b7c0731ebf28cce/Monaco_Linux-Powerline.ttf

    Consult, also, the page :

    https://gist.github.com/epegzz/

    Once this font installed, on your operating system, your text chào buổi sáng should be correctly displayed :-))

    Only 10 characters, ( from 1E9C to 1E9F and from 1EFA to 1EFF ), out of the 256 characters, of the Latin Extended Additional block, do not have any glyph, with the Monaco for Powerline font. These are, principally, some medieval characters + the Latin Capital German letter Sharp S, of code 1E9E

    Hope this post will help you !

    Best Regards,

    guy038

  • 0 Votes
    5 Posts
    2k Views
    Scott SumnerS

    BTW, an issue was created for what I was just talking describing:
    #3640 – Backward-direction checkbox enabled with Reg Exp search mode (at N++ startup)

    …but discussion on it kind of got tied up with this issue:
    #3533 – <<Find" (Find Previous) button is disabled for “Regular expression” search

    …and sadly, none of this has gotten any attention to this point.

  • 0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @David-Habier

    I’m not 100% sure but I don’t think so. It’s been a while since I did automated installation for npp.
    If the newer versions are still behaving the same then you might need to create links (hard-/soft-/junctions …) to achieve what you are looking for.

    Cheers
    Claudia

  • jslint and jshint

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @ThosRTanner

    did you see this?
    Although not sure if this is related to your problem.
    I’m not a java developer but as far as I understand jslint and jshint are tools for code quality assurance.
    If so, you might be able to run the newer versions with nppexec plugin.

    Cheers
    Claudia

  • CSS not accepting all comands

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    decodermanD

    Isn’t that a browser problem?
    I’m sure NPP can ‘read’ any file but the parsing is done in a web browser.
    Or maybe I misunderstand your problem.

  • shortcut keys for symbols and diacritics just like in MsWord?

    3
    0 Votes
    3 Posts
    1k Views
    Gogo NeatzaG

    If you must use a shortcut (from Notepad++) :
    Create the shortcut in windows using windows Explorer and then you can use it from Notepad++ with help from the NppExec plugin.

  • Bookmark lines regex

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Meta ChuhM

    it works on any similar regex engine eg php functions like preg_match_all()

    but you have to make sure to escape all characters that would be interpreted as a regex pattern part instead of a character you are searching for

    eg: if you use / as a regex start and end delimiter character, you have to write \/ for every slash you want to find to make regex search for the character /

    so /s/[0-9]+/1/ in a php example where you use / as regex start-end delimiters it has to be rewritten to:

    preg_match_all("/\/s\/[0-9]+\/1\//ms", $source_text, $matches_array);

    or you can use a different delimiter character:

    preg_match_all("#/s/[0-9]+/1/#ms", $source_text, $matches_array);

    then if you search for the physical character # you’ll have to write \#

  • Windows 10 file associations and ShellExecute("edit"...

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    As I mentioned in another thread, my registry associates .txt with the HKCR\txtfile key; yours may be different: you can look in HKCR\.txt to determine the right association for your machine. Assuming my setup:

    You’ll notice the three keys “open”, “print”, and “printto”: mine does not have an “edit” key. So if they are really using the hardcoded “edit” key, rather than the default action (listed here as HKCR\txtfile\shell:(Default)=open), then it’s a poor choice on their part, because there is no guarantee that the “edit” key exists for a given association on a given machine.

    !!WARNING!! What I am about to explain involves editing the registry. This has associated risk, and should only be followed if you understand everything said, and are willing to take all responsibility for any change in behavior that occurs in your system. I make no guarantee or waranty regarding the effectiveness or safety of the following. (If your computer stops working, or doesn’t work the way you want it to, it’s not my fault.) Use at your own risk.

    You may be able to work around their choice. Right click on shell, select New Key = edit. Right click on edit, select New Key = command. Left click on open > command, double click on (Default), and copy the path to NPP (if your default isn’t “open”, but some other key, then use the command from that key, instead); left click on edit > command, double click on (Default), and paste the path to NPP. Exit the registry editor. (Some people say that they need to reboot, or at least log out and back in, or perform other similar actions to make sure the registry has fully updated… but my guess is just closing the registry editor and closing/reopening the third-party program will be sufficient.) In general, this should create the new “edit” action, which will execute the same command that the “open” action executes.