• Double click links no longer work

    13
    0 Votes
    13 Posts
    12k Views
    mkupperM

    Thank you @dail I think you would have been safe leaving the style variable typed as auto and to change line 924
    < if (not notifyView->execute(SCI_STYLEGETHOTSPOT, style))
    > if (not notifyView->execute(SCI_STYLEGETHOTSPOT, static_cast<uint8_t>(style)))

    It appears there’s a Scintilla bug in that it’s storing the style index bytes as int8_t rather than uint8_t. When a document has more than 127 styles then SCI_GETSTYLEAT, which returns an int, sign-extends the style byte index 128 to 255 into negative values when converting the int8_t into an int. That bug should not have mattered for most of the old npp code except line 924 where Scintilla expected you to pass a style index value from 0 to 255 to SCI_STYLEGETHOTSPOT. When you passed a negative value to SCI_STYLEGETHOTSPOT it returned false.

  • How to mantain special ASCII characters

    8
    0 Votes
    8 Posts
    24k Views
    3d1l3

    Wow!

    Peter thanks. I followed what you said and is working. The only problem is that it seems that I lost the accents for good. I have a backup but it was not up to date :-(

    Thanks for the character search web page, very handy. The Déjà Vu font is impressive but then if I get used to it and open the file in other platform without the font I will not see some of the characters. Funny it use a dot instead of a forward slash for the zero.

    Peter thanks as well, very helpful comments.

  • portable Notepad++ with python scripts

    3
    0 Votes
    3 Posts
    3k Views
    MaDillM

    @Claudia-Frank

    Thank you. It seems to work. There is a similar issue on github: https://github.com/bruderstein/PythonScript/issues/15

    I added this as a comment there.

  • Regex: Finds words that are repeated in multiple lines

    6
    -1 Votes
    6 Posts
    3k Views
    Vasile CarausV

    Test it and it WORKS. I believe I will use Macros for this long regex.

    thanks, guy038. I believe you are my only friend around here. ;)

  • User-Defined Language | Problem with Code Folding

    8
    0 Votes
    8 Posts
    5k Views
  • Is there a way to have multiple languages in a single file?

    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @thecoolmacdude

    as long as it is html, yes you can.
    Afaik, html is the only lexer which supports different sublexers.

    Cheers
    Claudia

  • Can't make PHP echo or include to work

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Young-En-Kim

    npp is an editor, not a webserver.
    Search the web for setup a webserver with php support or for
    php builtin webserver.

    Cheers
    Claudia

  • Insert Key No Longer Works

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • I need side-menus to navigate huge text files.

    Locked
    13
    0 Votes
    13 Posts
    7k Views
    mkupperM

    @Chad-Coffman - I use npp’s search feature to navigate within a huge file. I also take advantage of the fact that a “word” in npp is a consecutive series of letters, digits, and the _ (underscore) symbol. At the top or bottom of a file I’ll have an index or summary and use something like:
    * Section_01 - Overview of the issue
    * Section_02 - Some section of the file
    * Section_03 - Another section of the file

    At the start of each section I have something like
    Section_03 - Another section of the file

    To navigate to section 3 I double click on Section_03 in the index to highlight that word, Ctrl-F to bring up the find box, and then hit Enter. I suspect I could add a npp keyboard shortcut to search for the hightlighted word if there’s not already one. My fingers are happy with Ctrl-F Enter.

    While I used Section_01, … 03 in the example you can use any string for the section labels. I stick with the [a-z0-9] character set for section labels as it’s easy to select the entire word with either double click or Ctrl-shift left or right arrow.

    The downside of that approach is there’s no “back” button to jump back to where I used to be in a file.

    I also take advantage of file://… links to jump from file to file within npp and/or to launch viewers such as Firefox.

    For example, I’m currently dealing with AT&T about some stuff related to my DSL connection. In my ATT-DSL.txt project file I’ll have something like
        03/12/2017 Received postal letter confirming automatic payment
            file://c:/Projects/ATT-DSL/2017-03-12-Confirmation-letter-for-automatic-payment.png
            file://c:/Projects/ATT-DSL/2017-03-12-Confirmation-letter-for-automatic-payment.txt
    The main project file has a summary. If I want to see the letter itself I can click on either the .png link which will pull up a scan in a web browser or the .txt link which is the results of running the png through an OCR program.

  • Regex: Put all sentences from Column\Tabs on a single Line

    Locked
    10
    0 Votes
    10 Posts
    4k Views
    Vasile CarausV

    guy038, I don’t have to say you are THE BEST ! WORKS PERFECTLY !!

    thank you very much !

  • function list - need help with regular expression

    18
    0 Votes
    18 Posts
    7k Views
    Christian11235C

    Hi,

    I am sorry - I just made a mistake and used the wrong functionList.xml. Now that I am doing it correct

    <function mainExpr=“^(={1,6})\h+\K(\w| )+(?=\h+\1)”/>

    is working and shows the correct functions.

    I can only apologize and thank you for all the help,
    Christian

  • 0 Votes
    7 Posts
    5k Views
    RomWinstonR

    @Michel-Daoud Hello, Iike @Claudia-Frank said, it is normal behavior. I don’t think you can have this behavior using np++ options or even TextFX autocomplete behavior.

    However, it’s possible to achieve this behavior using a plugin : XBrackets.
    I invite you to download it and try it out. In the settings of the plugin, you should see “Even if corresponding right brackets exists”. Check that too, and it should work the want you want it.

    Hope I could help.

  • Alt+Key shortcuts

    5
    0 Votes
    5 Posts
    4k Views
    thunderbirdmozT

    You can try using a third party macro program like autohotkeys to trap alt+d and convert it to home.

  • Brief question for the ones who know ;)

    6
    0 Votes
    6 Posts
    2k Views
    Scott SumnerS

    My first reaction when reading the OP’s question was that they want to have a way to create “n” selections based upon what is selected in a single selection. Then, typing will overwrite the contents of all “n” selections, in reality doing a visual, character-at-a-time replace.

    This posting (and corresponding Pythonscript by @Claudia-Frank ) does something similar and my be worth taking a look at: https://notepad-plus-plus.org/community/topic/11360/multi-selection-and-multi-edit

  • Mouse pointer disappears/goes invisible

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    Manuel de MeloM

    I’ve only noticed it with N++, but of course, that’s not to say it isn’t an MS issue. I am still looking up other occurrences and trying to replicate the issue elsewhere. So far though, only that one area of N++ does it.

  • Can I search for a tag in am xml file and have them all listed together?

    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    Your welcome

    Cheers
    Claudia

  • how to reinstall the note pad starter

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Edmond-Mullins

    Note pad starer is what?
    If it is notepad++, then it would be nice if you could let us know what the message is
    otherwise we have to guess and guessing mostly doesn’t work in such cases.

    Cheers
    Claudia

  • Always prompted to upgrade a plugin, and then the update fails

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Quanah Gibson-MountQ

    Never mind, I found another thread where people had the same problems, and was able to fix it by deleting the Notepad++ directory from my Roaming profile.

  • Unwanted line appears after return.

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Claudia FrankC

    @John-Pilge

    Nice find - so have to toggle NppCalcs active state.
    Standard shortcut is CTRL+SHIFT+C.

    Cheers
    Claudia