• Cannot install - cannot write to SciLexer.dll

    Locked
    2
    0 Votes
    2 Posts
    11k Views
    Claudia FrankC

    Hello Lisa-Cagle,

    it could be that you either

    have no write permission to the destination folder (did you use administrator account for installation?) or that there is already a file with the same name which has read-only flag set, so it can’t be overwritten.
    (if the file already exists, right click ->properties)
    Which OS do you use?

    Cheers
    Claudia

  • Selected tag background styling

    10
    0 Votes
    10 Posts
    6k Views
    Claudia FrankC

    @webdevpug,

    should I try and ask developers of the NPP to look into issue?

    I would give it a try, why not? There are already a lot of the scintilla
    styling parameters defined why not asking to provide the rest of it as well.
    There might be a reason not to do so but I guess asking can’t hurt.

    Cheers
    Claudia

  • Console Window Python Error Parsing Using NppExec

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Gregg T GeigerG

    Claudia: Your solution works perfectly. Thanks so much!

  • How keep tabs during deleting when set Replace tabs by spaces

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Unicode character displayed as an empty box.

    8
    0 Votes
    8 Posts
    16k Views
    guy038G

    Hello Angelo,

    In a prompt DOS window, your can know what is the current encoding : just type the command chcp and valid with the enter key. You probably use the codepage 850 ( OEM Multilingual Latin 1 ). Refer to the link, below :

    https://msdn.microsoft.com/en-us/goglobal/cc305160

    Of course, once your .bat file, opened in Notepad++, the accentuated characters, with code-point > \x{7f}, are wrongly displayed, because, Notepad++, use the default Microsoft ANSI codepage ( probably Windows-1252, as on my French configuration ! ). Refer to the link, below :

    https://msdn.microsoft.com/en-us/goglobal/cc305145

    You can, also, see that list, with the menu option Edit - Character Panel

    Remember that this ANSI code-page is the default codepage used, for all your NON Unicode programs, of your configuration.

    Therefore, the solution to get a well displayed .bat file, both, in N++ and with edit.com, in a DOS window, is to encode your file with the OEM 850 encoding with the menu option Encoding - Character sets - Western European - OEM 850
    ( if, of course, the chcp DOS command returned the number 850 )

    You may, also, convert, afterwards, this .bat file to the UTF-8 encoding, by using the menu option Encoding - Convert to UTF-8. However, this time, after opening it, with edit, in a DOS prompt window, it will be wrongly displayed too !

    Best Regards,

    guy038

    P.S. :

    BTW, I didn’t know the /U option of the DOS command cmd. Thanks for that tip :-))

  • 1 Votes
    9 Posts
    5k Views
    John SparkJ

    Hmm you wrote it like I would come from different planet.
    I’m not sure I described it well in my engrish :)

    But I’m sure it’s worth to build in. As I said for me as beginner, is pain in somewhere to make Atom work. It’s difficult to set it and know all available packages for my needs. It’s like every new package for every issue you want inside. It’s a lot of work to set it and also I’m not sure how overwrite basic-core key bindings and how manage conflicts of newcome key bindings coming with newly installed packages. But no more about Atom. My hero is Notepad++, I really want to stuck with it, but if me - a beginner has problems with it, I’m surprised others don’t.
    I just hope, this project won’t end like Sublime text ended or Lighttable too. Please developers listen to audience needs. Don’t let it die because of obsolete and not changing forward.

    Thanks

  • Double click selects whatever, but not what is mentioned to...

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    webdevpugW

    Thanks for help =)

  • Disable Mouse Auto Movement

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello jgjake2,

    you can’t blame npp for this rather your mouse properties settings.
    Check Pointer Options -> Snap to
    I assume this has been enabled(checked).

    Cheers
    Claudia

  • Is there a way to set %USERNAME% in the path?

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    瀚程戴

    You guys got my point although I didn’t make it clear enough. It’s a pity that npp could not get an environmental variable.
    Just let you know my demand better and my solution in R:

    library(R.utils)
    user <- System$getUsername()
    directory <- paste(“C:\\Users\\”, user, “\\workspace”, sep=“”)
    setwd(directory)

    With the above code, I could set the working directory correctly regardless of which computer I use, so it’s easy for me to switch different computers.

    I’m just a beginner of Python, however, I will learn your script @Claudia-Frank .
    Thank you all!@XP1 @Claudia-Frank

  • Config File

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Dan McGovernD

    thanks for the answer

  • Can not install plugins.

    5
    0 Votes
    5 Posts
    34k Views
    Stanislav ChizhikS

    Hi Claudia,
    Thank you for the assistance! I solved the problem. Firewall… Notepad++ appeared in the block list somehow.

  • Can't figure out how to run WYSIWYG

    Locked
    3
    1 Votes
    3 Posts
    6k Views
    Claudia FrankC

    Hello Jim-Robson,

    I assume you are creating webpages with html and php
    and WYSIWYG refers to updated webpages which should be
    displayed automatically, correct?

    If so, no this doesn’t work that way. You need to edit the pages in npp
    and run (F5) it with your preferred browser. As you use php in addition,
    you need to have some web server instance running.

    In F5 dialog you can put in something like

    DRIVE:\YOUR_INSTALL_DIRECTORY\YOUR_BROWSER.exe http://localhost/$(FILE_NAME)

    DRIVE might be replaced with C, D, etc.
    YOUR_INSTALL_DIRECTORY is, of course the directory where your browser is installed
    YOUR_BROWSER.exe something like Firefox.exe etc.

    $(FILE_NAME) needs not to be replaces, it refers to the open active document but
    http://localhost/ may be, depending whether you store everything in web server root directory.

    In addition there is a nppExec plugin which does the same as F5 RUN function but with more
    functionality.

    Cheers
    Claudia

  • Error when opening any text file

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello Alan-Wadsworth,

    some outcomes on this tips.

    Cheers
    Claudia

  • php(+html) highlighting issue

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    Hello jahsql,

    I don’t quite understand what you mean by

    Second one - because it can’t understand that only one branch of “if” is executed.

    Well, I understand what you are saying but I don’t see how a lexer should
    know if parts of a code get executed or not. A lexer should tokenize
    the code and color each token in regards to the defined rules.
    That the lexer gets confused by your code doesn’t surprise me as you
    have four open but only three closing tags.
    And php/html lexer has increased complexity as the lexer needs to
    satisfy php and html code together.

    Any suggestions/solutions?

    <div> <div> <!-- this should be highlighted --> <?php if($x==$y) { echo ‘<div id=“bug1”>’; /* bugged highlight to here */ echo ‘</div>’; else echo ‘<div id=“bug2”>’; echo ‘</div>’; } ?> </div> <!-- bugged highlight from here --> </div>

    Maybe I didn’t get the point but this are my two cents worth.

    Cheers
    Claudia

  • Select and run option

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    Hello sathish-kulal,

    the builtin function is Run (F5) which can execute an external program together with your file
    provided as a parameter.
    See here for a more detailed description.
    This means you can run batch files, python script, c program and so on but you provide your
    complete file like

    cmd /k python.exe “$(FULL_CURRENT_PATH)”

    “$(FULL_CURRENT_PATH)” is the path of the active document.

    In this article it is also mentioned that there is a plugin called NppExec which has much more functionality.
    Maybe worth to try it as well.

    Cheers
    Claudia

  • 当我使用一个黑色背景的主题时,会出现一些困惑

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    If someone could translate this, I would appreciate it.

    Cheers
    Claudia

  • Finding number of Characters in SQL '' String

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello Johan-Havenga,
    If there is a pattern in how they do the description, it should be possible.
    Can show us an example and describe how you want it to be done?

    Cheers
    Claudia

  • Potential buy of searching string like |CR|?

    8
    0 Votes
    8 Posts
    5k Views
    Harry ChenH

    Thanks so much for your detailed reply. Appreciate it.
    Not sure what purpose the “Match whole word only option” is designed for but it looks it might be working as designed. We just need to remember that option has to be UNCHECKED.
    For a light user of Notepad ++ I think that “Match whole word only option” is misleading for me. I have to cross my fingers wishing normal Notepad ++ users know the impact of that option.
    Frankly I am not fully understanding why the simple search feature involves so many hidden categories and criteria.

  • MediaWiki self-closing reference tags

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Claudia FrankC

    Hello Michael Horvath,

    I guess I understand what you mean.

    <ref name=“Pächt83”/> and confirmed with the 1959 discovery of …

    is painted in green underlined, whereas

    <ref name=“Pächt83”/>

    should be the only one and the text afterwards should be again in black, correct?

    Contrary to

    <ref name=whatever> here some text </ref>

    where everything should be painted in green and underlined.

    Afaik, having two different closing tags for one opening tag isn’t supported yet.

    Cheers
    Claudia

  • Enhance the search options

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hello Prabhu and Scott,

    Scott, nice work-around, indeed ! I upvoted for it.

    Prabhu, there is, also, an other possibility :

    Select the Search - Mark… menu option

    Type abc, in the Find what : zone

    Check the Bookmark line and the Purge for each search options

    If necessary, check the Match case and Wrap around options

    Select the appropriate search mode

    Click on the Mark All button

    Then, select the Search - Bookmark - Copy Bookmarked Lines menu option

    Open a new tab ( CTRL + N )

    Finally, paste the bookmarked lines ( CTRL + V )

    However, my method has a disadvantage : it does NOT copy the line numbers, of the matched lines :-((

    So, finally, we’re all agree that an option to get ONLY ONE line, with the multiple matched strings highlighted, would be welcome !!

    Best Regards,

    guy038

    P.S. :

    I’ve just thought about an other way to get the line numbers, but not the highlighting, unfortunately :

    Look for any occurrence of abc and send the results to the Find result pane, clicking, as usual, on the Find All in Current Document button

    Select all the lines found, in the Find result pane, with the mouse

    Copy these lines with a CTRL + C action

    Open a new tab ( CTRL + N )

    Paste these lines with a CTRL + V action

    Finally, perform the S/R, below, with the Regular expression search mode checked

    SEARCH (?-s)(^\h*(Line \d+:).*\R)(?:^\h*\2.*\R?)+

    REPLACE \1

    Et voilà ! You get each line, of the list, only once :-)