• How to Hyper-Link

    6
    0 Votes
    6 Posts
    4k Views
    gstaviG

    Why do you want such a thing from Notepad++?
    Why not use something like Microsoft OneNote or Zim which were designed for the task?

    Notepad++ displays all the chars in a file as they are. Hiperlinks by definition have displayable part and a hidden target part. Notepad++ is not designed to hide anything that exist within the file.
    A plugin that relies on external database can do the trick. Either Open Selection will be fixed for you or you can adjust for your needs a tags based plugin that normally allow coders to Go To Definition of a tag. You will need to generate and maintain the tags database by yourself so your desired keywords will reference the txt files.

  • 0 Votes
    8 Posts
    4k Views
    WerwacKW

    Hi MAPJe71,

    Thank you for this new code.
    I think having 2 separated parser definitions, one for the scripts (.ms) and one for the macros (.mcr), is fine in most of the cases, and your suggestion is nice :)

    I tested the code above and I have the following issues:

    for .ms files, the structure is correctly identified with the “class” icon and as a new folder level. If there are 2 or more structures in the file though other structures are not recognized at all.

    for .mcr files the new folder level for macros is not recognized. It would be nice if it could also support several macros in the .mcr file.

    I updated the sample files to introduce several structures and macros to test this, you can find them in this package: https://we.tl/kSLs8d5zhg

    Thanks a lot for your help,

    Werwack

  • Reuse search criteria

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @Michael-Weiner

    Well, if you are talking about your immediately previous search text, simply invoke a new search when your caret is on some whitespace; then Notepad++ will put the most recently searched for text in the “Find what:” box.

  • Need a workable SherloXplorer plugin

    9
    0 Votes
    9 Posts
    6k Views
    Hong-Xuan JiH

    @young-developer
    Thanks for your replies, but my font size is normal.

    @chcg
    I had tried the version 0.5. but the same problem poped up.

    : (

  • Closing all tabs prior to starting editor

    Locked
    4
    0 Votes
    4 Posts
    7k Views
    John PilgeJ

    That should be
    cd\

  • Display Zoom Rate on Status Bar

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @zeufparis

    Install Python Script plugin from here.
    Once installed, goto

    Plugins->Python Script-New Script

    and create a script called

    startup.py

    and copy the following content into the newly created document.

    import locale locale.setlocale(locale.LC_ALL, '') def StatusbarSelOverride(args): _length = "{0:n}".format(editor.getTextLength()) _lines = "{0:n}".format(editor.getLineCount()) _zoom = editor.getZoom() notepad.setStatusBar(STATUSBARSECTION.DOCSIZE, 'length:{} lines:{} zoom:{}'.format(_length, _lines, _zoom)) editor.callback(StatusbarSelOverride, [SCINTILLANOTIFICATION.UPDATEUI, SCINTILLANOTIFICATION.ZOOM]) # register callback

    Save it. (DO NOT reformat code - python is strict about indention)
    Goto Plugins->Python Script->Configuration and
    change Initialisation from Lazy to ATSTARTUP
    press ok
    Restart npp

    Cheers
    Claudia

  • Using Notepad++ to sanitize data to be imported

    15
    1 Votes
    15 Posts
    12k Views
    Alan KilbornA

    @mkupper

    I’ve several times over the years WANTED to use sed for stuff under Windows, but it seems that it always became too much of a struggle with getting all the escaping correct, first thru the CMD shell layer, and then the sed layer itself. Don’t misunderstand, I’ve been using Unix/DOS/Linux/CMD command lines since the early 1990s, and consider myself near expert level with them. It just seems that there is “something” about a Windows port of sed that makes me nuts trying to get what I’m trying to do to work. However, @mkupper, maybe your recent posts have encouraged me to give it another go. :)

  • Function List issue

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    MAPJe71M

    You’re welcome!

  • How to add Keyword class to cause highlighting

    Locked
    8
    0 Votes
    8 Posts
    6k Views
    A StodA

    I’ll give it a shot. If I am successful, I’ll for sure reply back

  • Editing an Existing Recorded Macro

    Locked
    2
    0 Votes
    2 Posts
    18k Views
    Claudia FrankC

    @Alex-M-Wolff

    but shortcuts.xml contains also the macro itself.
    See here for more information.

    Cheers
    Claudia

  • How to put marked lines in parenthesis?

    3
    0 Votes
    3 Posts
    2k Views
    Marco TorskyjM

    Thank you very much!!!
    ;)

  • Editing the docs.notepad-plus-plus.org wiki

    Locked
    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • Save As ... always maximizes window

    6
    0 Votes
    6 Posts
    4k Views
    mkupperM

    You can flip a window in/out of maximized mode by double clicking on the title bar. That works for the Save-As window too. Windows itself remembers the Save and Save-As window position and size for each application. Unfortunately, while it’s in the registry the data is buried in a blob within HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU meaning it’s not easy to go in and reset an app to the defaults.

    If you ever are jammed and can’t see or get to the top of a window then do Alt-spacebar. You should get the same menu that you get when you use the mouse to click on the upper-left corner of an application. This trick works even if the window is dragged 100% off the screen and is not visible. You will then have either “Restore” available if the window is currently maximized or “Size, Move, and Maximize” options Using this menu you can also move and resize a window using the arrow keys to drag it back on screen if needed.

  • Can I setup new file extension to look like SQL?

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Blair-Combs

    Under Settings->Style Configurator->Language (select SQL)
    and put your extension (without dot) in field User ext.: vws

    Cheers
    Claudia

  • How do I run npp after building from source?

    4
    0 Votes
    4 Posts
    2k Views
    gstaviG

    Looking at this.
    I guess you should edit isCertificateValidated to always return true.

  • Long hang while starting

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    gstaviG

    Don’t think there is much to do.
    See this

  • 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. ;)