• 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
    2k 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
    11k 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