• Skip certain extensions in File Search

    Locked
    3
    0 Votes
    3 Posts
    965 Views
    Alan KilbornA

    @Dandello2000

    So there is one extension you want to skip; but how many different ones are there to include? If a small number, the obvious solution is to exclude the one you don’t want by including all those you do want.

  • Run Open Script

    Locked
    7
    0 Votes
    7 Posts
    935 Views
    Meta ChuhM

    @Alan-Kilborn

    yes.
    as far as i have seen, the numbering was introduced before the search filter was added, to allow supporters to say e.g. “go to line 143”.

    you are correct, the numbering is still generated at the time of displaying, and not taken from a table, created once, when shortcut mapper is initialised.

  • load header file with same name as the current c file

    14
    2 Votes
    14 Posts
    2k Views
    Jim DaileyJ

    @Ion-Marqvardsen
    You might want to install the Solution Tools plug-in. I use it and the <Ctrl>~ hotkey to cycle among files having the same name and various different file extensions.

    See here: http://npp.incrediblejunior.com/

  • Bookmarks are gone after closing the file

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    gstaviG

    The devil is in the details. We, the users, want our bookmarks to be remembered. But what is bookmark?

    Is it line number?
    Is it line text?
    What should happen when file is modified externally?
    If I put a bookmark on line 100 and adds 10 lines at the beginning of file, bookmark will jump to 110. Now, when I close the file without saving it, what should be remembered? There could has been 1000 different edits that added and removed random lines.
    What if the bookmark was placed on a line that was never saved?

    For IDEs that are workspace oriented things are (a bit) easier because bookmarks can be saved as part of the workspace meta files. Notepad++ is not workspace oriented.

    Having bookmarks saved as part of the session is a reasonable compromise. I don’t think that core Notepad++ should go beyond that. Find someone to implement Long-Term-Bbookmark-Storage plugin.

  • Adding multiple lines to the bottom of documents

    Locked
    9
    0 Votes
    9 Posts
    1k Views
    David Smith179D

    Hi Guy,

    I found time to have a go - and totally screwed it up! On a few test files only thank goodness. Second attempt worked perfectly. I have since applied the solution to all my php files and uploaded them and, yers they do work.
    https://www.minibottlelibrary.com/mbl/index.html (straights area)

    Again, MANY THANKS.

    David

  • 0 Votes
    7 Posts
    1k Views
    FDWojoF

    I must admit to being a bit embarrassed. I had been looking thru TextFX for a menu item called “JOIN TEXT” and hadn’t found anything. But in looking, I scanned right over the phrase “UNWRAP TEXT”. <oops!>

    That works perfectly.

    Thanks for helping to correct an ignorant user.

    I gotta say that I had noticed other topics in here and a lot of times there were multiple day delays before the original poster got a response. You guys have been so helpful, and responding in only hours, or sometimes minutes.

    THANK YOU TO BOTH OF YOU!

    Frank

  • Bug in Javascript ES2015

    Locked
    5
    0 Votes
    5 Posts
    689 Views
  • 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
    448 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
    773 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
    581 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
    845 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
    358 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
    594 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
    3k 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.