• Add space at left of text?

    Locked
    4
    2 Votes
    4 Posts
    4k Views
    guy038G

    @anderwriter, @mikhail-v, @dail and All,

    Just tried, Dail and it’s working nice !, But you just forgot your own excellent Lua plugin ;-))

    So, once the Lua plugin installed, just use these commands to change left and/or right margins :

    editor.MarginLeft = WidthInPixels

    editor.MarginRight = WidthInPixels

    And to know the current value of margins, simply type :

    editor.MarginLeft

    editor.MarginRight

    and hit the Enter key or click on the Run button

    Remark : The default Scintilla value, for the two margins, is 1 pixel wide, but value 0 is allowed, too !

    Best Regards

    guy038

  • Hi I am new

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    AnderwriterA

    As I’m sure everyone else will agree, the important thing isn’t how long you’ve been here, but that you use and appreciate NP++, and text in general. :?)

  • RUN File path error 2

    Locked
    2
    0 Votes
    2 Posts
    791 Views
    PeterJonesP

    Are there spaces in the path and/or file name? If so, make sure you put quotes around it, like cmd /c "$(FULL_CURRENT_PATH)"

  • StaticControl.h

    Locked
    1
    0 Votes
    1 Posts
    506 Views
    No one has replied
  • extract email address

    Locked
    7
    2 Votes
    7 Posts
    5k Views
    PeterJonesP

    @Ralph-Ratz ,

    I’m glad it’s working for you.

    If you are going to be doing more regular expression manipulation of your text files (including if you ever just want to tweak this regex in order to make some change, like only doing ones that have semicolon’s after the > or something), you are going to want to study regex yourself.

    We have a FAQ entry which explains where to find regex docs, which is a good starting point for learning about them. I’d recommend searching through some of those, and seeing if you can understand everything in the regex I gave. After reading the docs, if you’re having trouble understanding a portion of it, feel free to ask, and we can help clarify.

    If you come back for future requests for regex help: please craft your own expression… and if it doesn’t work, then you can ask us, including: show what you tried, explain why you tried that (ie, what you think the regex should do, and what you think each piece of the regex is doing), and show what results you get that doesn’t match your expectations. This will help us to help you better.

    (And the post “How to Markdown code on this Forum” will help you format posts, so the data exactly represents your actual data.)

  • Bullet list (special Characters)

    Locked
    4
    0 Votes
    4 Posts
    15k Views
    Scott SumnerS

    @guy038 said:

    Or I miss something obvious ?

    I wasn’t talking about the forum.

    All you missed was my (bad/slight) attempt at humor. As you know we get a lot of questions about Notepad++ and word-processing functions. As hopefully most everyone knows by now, Notepad++ is a text editor and as such does not possess many w.p. functions like bulleting or auto-numbering of bullet points.

    Given that, I really do what I said, in text files…but I don’t think that was what the OP was after. But hopefully if the OP does read this s/he will understand the situation with bulleting.

  • Upload success but must refresh browser many times before viewing result

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    Sounds like a server issue to me. But I could be wrong.

    Does the same thing happen if you upload with a separate FTP client (like FileZilla)? If so, then the problem is solely on the server side, and you’ve asked your question in the wrong place

    I am assuming by “using the FTP function”, you mean you are using the NppFTP client to remotely edit files on your server. If you mean something different, please clarify. If that is what you mean, what version of NppFTP are you using?

    How do you determine “it upload with success”? Does the NppFTP - Output window (which can be enabled by the show messages window button in the main NppFTP interface) show “Upload of /path/to/filename succeeded.”? If so, do you really need to “click upload many times”, or is that multiple clicking just an attempt on your part trying to make the file accessible through your browser? Or do you have some other confirmation (other than not getting the updated file in the browser) that the file has not made it to your server, even though NppFTP claimed the upload was successful? If so, what is your other confirmation? (One possible confirmation: attach to your server using an external client, such as Filezilla or PuTTY-ssh, and confirm that the file has changed)

    Assuming the file made it correctly to the server on your first click of the upload (and being patient enough for the transfer to complete), then the problem is solely on the server side, and you’ve asked your question in the wrong place.

    server-side freebie advice: My guess is that if it’s correctly uploading, then there is a problem in communicating between the server and the browser that the file has changed. That might be as simple as timezone difference or misconfiguration: when you upload a file to the server, most webservers I’ve seen will send that stamp to the browser (when request) so that the browser can decide whether or not to download the new copy. Sometimes a bad timezone setup on the server, or sometimes web ISPs use a different machine for FTP connections than they do for the external web connections, so a date mismatch there will cause the file to appear to have been modified at an earlier time, so the browser doesn’t recognize it. (I seem to remember from years ago that some FTP clients allow you to specify a timezone offset for a given server, but NppFTP 0.27.4 does not appear to be one of them, and I cannot see those settings in my modern Filezilla 3.34.0) Also, even with the times correct, a webserver may have its own caching mechanism, and might not poll your particular file for some number of seconds or minutes before it notices the file has changed and starts serving the new Last Modified Time to the browser.

    We’re happy to answer Notepad++ questions, and NppFTP is reasonably connected enough that we’ll do our best (though we may have to pass you on to NppFTP experts at some point).

    But unless you share some evidence that it’s unique to the Notepad++ setup, then you’ve asked your question in the wrong place, and should probably find a better forum for experts in the field you’re using (ie, for your webserver).

  • Extend automatic reload on deleted and recurring files

    Locked
    2
    0 Votes
    2 Posts
    845 Views
    Claudia FrankC

    @bheorcnh

    I assume this FAQ should be considered.

    Cheers
    Claudia

  • Support of unix-like paths and file names in File|Open-Dialog possible?

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @PeterJones said:

    earlier post

    How come we can’t have both the new style dialog AND unix style path support at the same time??

  • How to tile tabbed pages?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Benevolent DeityB

    Thanks for the info. It sounds like a worthwhile enhancement to an otherwise great product.

  • How do I tell Notepad++ to use spaces to auto-indent instead of tabs?

    Locked
    5
    0 Votes
    5 Posts
    25k Views
    Meta ChuhM

    @Kevin-Morris

    you’re welcome ;-)

  • 0 Votes
    11 Posts
    25k Views
    Naveen UgraiahN

    @Leigh-Wardle Awesome!! you were right… I was scratching my head all the while. Thanks!!

  • Any settings that would slow typing to > 1chr/sec?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Claudia FrankC

    @Jonathan-Dzoba

    another known issue is to have a really big one-liner and try to edit it.
    Scintilla, underlying component Npp uses, isn’t really performant in such cases
    as it wasn’t designed to do so.

    Cheers
    Claudia

  • Automation Friendly Latest Version Download URL

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    issue exists as https://github.com/notepad-plus-plus/notepad-plus-plus/issues/604 … might want to upvote it or add comments.

    as that issue points out, you can grab https://notepad-plus-plus.org/update/getDownloadUrl.php, which gives an XML file with the current download URL, so you could parse that XML to get the actual download URL.

  • timestamp highlighting

    Locked
    2
    1 Votes
    2 Posts
    742 Views
    Scott SumnerS

    @SkodaRunner said:

    is there any possibility to highlight timestamps

    Yes, show us a sample…timestamps can have many forms.

  • how to transliterate languages?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    SalviaSageS

    Hi. This is possible. You must use either the programming language AutoIT or AutoHotkey to do this.

    Check out this link where someone made a cyrillic-latin transliterator.

    https://autohotkey.com/board/topic/55957-cyrillic-to-latin-and-vice-versa-transliterator/

    also, check out my earlier post
    https://www.autoitscript.com/forum/topic/150021-how-do-i-automatically-change-letters-to-other-letters-in-a-text-editor/

    You may be able to adapt something from there.

  • Type Ahead with index search would be awesome ...

    2
    0 Votes
    2 Posts
    833 Views
    Scott SumnerS

    @Java-Dev

    You forgot to offer up the $100 this time around.

  • can't save modifications to an existing file

    Locked
    2
    0 Votes
    2 Posts
    735 Views
    James DurbinJ

    cancel this request for help. figured it out.

  • Pasting Data from Excel in 4th Collapse Level

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cipher-1024C

    You may have show some examples like “I have this…”, “I want it to look like this…”. I think more people would understand what you’re looking for.

  • How to sort out duplicates?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    cipher-1024C

    If you’re working with just a list of values, you can install the CsvQuery plugin and run a SQL type query on your list. Say you have this as your list:

    filter1
    filter1
    filter1
    filter2
    filter2
    filter2
    Filter1
    filter2
    Filter3

    Open the CsvQuery window, (you may have to hit the “read file” button), type this into the command bar:

    SELECT col1, COUNT(*) FROM THIS GROUP BY COL1 ORDER BY COL1

    Click Execute
    the output window will show this:
    Filter1 1
    Filter3 1
    filter1 3
    filter2 4

    If you want case insensitive searches:

    SELECT col1, COUNT(*) FROM THIS GROUP BY COL1 COLLATE NOCASE ORDER BY col1 COLLATE NOCASE

    That will get you this:
    Filter1 4
    filter2 4
    Filter3 1

    I had to use ctrl-c to copy the output. Right click - copy didn’t work for me. Note that in a CsvQuery query “this” is the table name (your list in the active window).
    Reading a file with 100k lines and executing the search each took about a second on my test case (the sample above repeated a lot). IDK if you can make a macro out of this, but it’s another option besides regex and python.

    May the Sort be with you.