• I want to delete everything accept my ip and port on each line.

    Locked
    4
    1 Votes
    4 Posts
    1k Views
    guy038G

    Hi @upperking,

    Oupppss ! I should have read your post more carefully ! We must take the leading numbers in account ;-))

    So, change the Find and Replace zones, as below :

    SEARCH (?-is)^\d+\x20(76\.247\.131\.161:\d+).+

    REPLACE \1

    Notes :

    Beware : if the IP address is not exactly the address 76.247.131.161, nothing is then replaced

    The part ^\d+\x20 represents any number, beginning a line and followed with a space character

    The dot meta character . is escaped with the \ to be considered as a literal

    The group 1 is the string 76.247.131.161 followed with a colon, followed with the port number, which is rewritten, during the replacement phase

    Cheers,

    guy038

  • 12-hour to 24-hour clock conversion

    Locked
    21
    1 Votes
    21 Posts
    3k Views
    guy038G

    Hi, all,

    As the (?...:....) regex structure, of the Boost regex library is not so common, you may feel a bit lost about the replacement regex syntax !

    So, here is, below, the algorithmic translation of the replacement regex, of my previous post :

    If group 13 exists # Case hour = '12' then If group 17 exists # String 'AM' or 'am', after the digits then Write the string '00' else Rewrite the group 1 contents # Actually, the hour '12' else If group 17 exists # String 'AM' or 'am', after the digits then Rewrite the group 1 contents # The 'hour' digits, so the values '01' or '02' or ...... '11' else # The 'hour' digits, when followed with the string 'PM' or 'pm' If group 2 exists then write the string '13' # Case hour = '01' If group 3 exists then write the string '14' # Case hour = '02' If group 4 exists then write the string '15' # Case hour = '03' If group 5 exists then write the string '16' # Case hour = '04' If group 6 exists then write the string '17' # Case hour = '05' If group 7 exists then write the string '18' # Case hour = '06' If group 8 exists then write the string '19' # Case hour = '07' If group 9 exists then write the string '20' # Case hour = '08' If group 10 exists then write the string '21' # Case hour = '09' If group 11 exists then write the string '22' # Case hour = '10' If group 12 exists then write the string '23' # Case hour = '11' endif endif Write the string ':' Rewrite the group 14 # Minutes digits Write the string ':' Rewrite the group 15 # Seconds digits if group 16 exits # Milleseconds digits then write the string ':' write the group 16 contents # Milleseconds digits endif

    BR

    guy038

  • Crash with error loading dSpellcheck plugin.

    Locked
    2
    0 Votes
    2 Posts
    465 Views
    Meta ChuhM

    welcome to the notepad++ community, @Donald-Cook

    i don’t experience this on notepad++ 7.6.6 with dspellckeck 1.4.11.0 installed from the built in plugins > plugins admin menu.

    it might also be, that another plugin could cause dspellcheck to crash.

    what notepad++ version and dspellcheck version do you have installed ?

    ps: my debug info from the notepad++ menu: ? > debug info... > copy debug info into clipboard is:

    Notepad++ v7.6.6 (32-bit)
    Build time : Apr 3 2019 - 23:49:50
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 7 (64-bit)
    Plugins : ComparePlus.dll dbgpPlugin.dll DSpellCheck.dll ElasticTabstops.dll EmmetNPP.dll HexEditor.dll IndentByFold.dll JSMinNPP.dll LuaScript.dll MarkdownViewerPlusPlus.dll mimeTools.dll NavigateTo.dll NppAutoIndent.dll NppConverter.dll nppcrypt.dll NppExport.dll NppFTP.dll NppJumpList.dll NppMarkdownPanel.dll NppSnippets.dll NppTextFX.dll NppUISpy.dll PreviewHTML.dll PythonScript.dll SourceCookifier.dll TakeNotes.dll Tidy2.dll XMLTools.dll

    best regards.

  • How Can I Remove Vertical Scrollbar using LuaScript?

    Locked
    2
    0 Votes
    2 Posts
    790 Views
    guy038G

    Hello, @hced and All,

    Welcome to the Notepad++ Community !

    Very simply, indeed !

    Open the Lua console ( Plugins > LuaScript > Show Console

    Inside the bottom line, type the command :

    editor.VScrollBar = false with that exact case

    Either, hit the Enter key or click on the Run button

    Here we are !

    Best Regards,

    guy038

  • Shortcut in find dialog

    Locked
    3
    0 Votes
    3 Posts
    611 Views
    Fuchs.85F

    Hi Alan and thank you for your reply!

    “Are you talking about being able to move between the Find tab, the Replace tab, the Find-in-Files tab, and the Mark tab…with a keyboard combination?”

    That’s exactly what I’m talking about. Too bad this isn’t possible.

    Thank you anyway!

  • Text in colour or B & W?

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Justin FaithfullJ

    Selected HTML from the language menu which has not worked.
    Selected CSS from the language menu which has worked. Success!
    I was cutting & pasting code from Dreamweaver CS6.
    Thank you for solving my problem people

  • about auto complete

    Locked
    1
    0 Votes
    1 Posts
    379 Views
    No one has replied
  • Launching Notepad++ from command line with -ro argument

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Meta ChuhM

    welcome to the notepad++ community, @John-Dy-Chee-Puat

    the -ro argument only works, if a file is not yet opened in a previous session.
    the session has a higher priority and the read only setting of a session overrides the -ro switch.

    if you want to open specific multiple files as read only, you can use the command line:
    notepad++.exe -ro -nosession change.log license.txt.
    note: this will disable session snapshot and periodic backup at the preferences, to try to avoid overwriting the previous session.xml.

    recommended: if you usually open more or less the same bunch of files as read only, you can open those files, set them as read only, and save this as a session at file > save session for future use.
    loading a saved session will set the saved read only status to the session’s state, regardless if the file is already opened in an opposite state.

    best regards.

  • Convert 24 hour military time to 12 hour time

    12
  • Need to Always/Permanently highlight non-ASCII characters

    Locked
    3
    1 Votes
    3 Posts
    613 Views
    Alan KilbornA

    @bisdavid If all that is done is to “automatically highlight any such characters whenever I open”, aren’t you still going to have to “search”…because what if said characters aren’t in the current viewable area; you won’t know if a file contains any “bad” characters or not?

  • Feature Request: Add Arduino Sketch INO files to file menu

    12
    0 Votes
    12 Posts
    4k Views
    Meta ChuhM

    @Alan-Kilborn

    only if you merge the parts you need from Arduino.xml to cpp.xml.
    so you would use the c++ lexer with an extended cpp.xml autocompletion file for arduino.

  • How to make Notepad++ to forget old installation path

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Meta ChuhM

    @Installer

    splendid, at least you’ve got it working with the /D switch.

    there must be still a residue either at the registry installer information, or file based left overs, maybe on D:\Notepad++, but it shouldn’t be any problem, if you don’t have the time to keep on searching, as the next update or silent install will use the new installer path, unless you uninstall notepad++ first.

    best regards.

  • Error message closing find results window

    25
    1 Votes
    25 Posts
    4k Views
    Meta ChuhM

    @Zach-Mayfield

    good to hear that.
    the next release (7.7) will be code signed again.

    a little warning: 7.7 is a major upgrade jump of the integrated scintilla editor engine, as well as the boost regex engine, so we expect some unknown issues yet to arise, while some others, depending on old engine’s issues, will be fixed.

    many thanks and best regards.

  • Feature request: Make your self more like ms-notepad.exe

    Locked
    2
    0 Votes
    2 Posts
    394 Views
    Meta ChuhM

    welcome to the notepad++ community, @מוטי-דר.

    unfortunately rtl languages, especially mixed rtl text in ltr view, are still a big problem for the scintilla editor component notepad++ is using.

    we can not do anything about that at the notepad++ part, as scintilla is a completely independent project.

    if you like, you can browse scintilla feature requests and bugs here:
    https://sourceforge.net/p/scintilla/feature-requests/
    https://sourceforge.net/p/scintilla/bugs/

    many thanks and best regards.

  • Search with wildcards

    11
    0 Votes
    11 Posts
    2k Views
    Meta ChuhM

    @Diego-Sabah

    find what: <img alt(.*?)("|"\r\n|"\n)(.*?)mysite.com(.*?)$
    replace with: your_content

    note: keep . matches newline disabled at the search mode settings, to avoid multi line matches.

    best regards.

  • Project panel does not pop up

    Locked
    8
    1 Votes
    8 Posts
    1k Views
    Pierre HuybensP

    @Ekopalypse : Yes, this was the solution, Now the Workspace windows is pop up again.
    Many many thanks Ekopalypse.

  • Tab replaces all leading spaces

    Locked
    18
    2 Votes
    18 Posts
    6k Views
    Alan KilbornA

    @Ekopalypse said:

    how should a program know this beforehand

    I’m not following this thread super-closely because in my now 3 decades of software development, the coding standard has been to never allow the use of actual tab characters in source files. But I would think it should replicate the indentation exactly of the line-above, but let the user then edit that and leave it the way the user changes it…but I am too dumb about it to continue talking… :)

  • Where are my plugins? How can I activate my own plugins?

    Locked
    4
    0 Votes
    4 Posts
    921 Views
    Ollo HeßO

    Thank you very much!

  • NeWDocDefaultSettings lang:1 ; settings , which file to modify ?

    Locked
    2
    0 Votes
    2 Posts
    425 Views
    dinkumoilD

    @WestJc

    The NewDocDefaultSettings is an XML node in <Npp-install-dir>\config.model.xml respectively %APPDATA%\Notepad++\config.xml but it’s for configuring EOL format, character encoding and default (programming) language for new files, thus it is not suitable for what you want to achieve.

    But you could try the NewFileBrowser plugin. It provides the ability to define templates for two programming languages which can be assigned to a keyboard shortcut.

    Note: The plugin is only available as 32 bit version. You can install it via PluginManager (up to Notepad++ v7.5.9) or via PluginsAdmin (Notepad++ v7.6 and above).

  • user defined languages and keywords without spaces

    Locked
    2
    0 Votes
    2 Posts
    673 Views
    EkopalypseE

    @EdoCarbone

    No, UDL isn’t good in this case. Depending on your exact needs you might get reasonable results by using marking feature or by using a scripting plugin like pythonscript, luascript etc…