• SRS Document

    4
    0 Votes
    4 Posts
    462 Views
    PeterJonesP

    @apantzar said in SRS Document:

    because I want to write SRS for a project that does not have one.

    That’s not what you said in your first post. But if that’s really the case, good for you.

    As I said, I don’t think such a document exists for Notepad++. Sorry

  • Selected text

    32
    0 Votes
    32 Posts
    2k Views
    Ruud SchmeitzR

    @Ruud-Schmeitz said in Selected text:

    So I’ve decided to go for this option :
    editor.setWhitespaceSize(1)
    editor.setWhitespaceFore(1,( 64, 64, 64))
    editor.setWhitespaceBack(1,(255,255,255))

    I hope that makes me happy .
    😀

    Actually it did not !

    Selecting the 8 lines of code results in :
    code - selected 01.png

    Because that’s not what I want , I deleted editor.setWhitespaceBack(1,(255,255,255)) in the startup.py file .

    The remaining PythonScript commands :
    editor.setWhitespaceSize(1)
    editor.setWhitespaceFore(1,( 64, 64, 64))

    make the selected lines of code look like :
    code - selected 02.png

    Now I’m happy .
    😄

  • Leave software far away from politics

    6
    0 Votes
    6 Posts
    2k Views
    Jinghe MaJ

    @Alan-Kilborn

    Thanks Alan. I have created a new one. Thanks again.

  • Add double quote on different words in notepad++

    6
    0 Votes
    6 Posts
    23k Views
    caryptC

    @PeterJones yes , thank you , the replace should have been “$1”\r\n at least , or i should have taken the \R into brackets in the search string , and added it into “$1”$2 . but i missed the concept that the whole search string gets replaced , if i dont instruct a rebuilding in replace . oops , my mind wasnt working .
    i am sorry @Aswin-Hadinata

  • Bit offtopic but ...

    1
    4 Votes
    1 Posts
    140 Views
    No one has replied
  • Backwards Regular Expression Search

    2
    0 Votes
    2 Posts
    475 Views
    EkopalypseE

    @sj-bt

    Just to save you from further disappointment, this forum is for discussion of how Npp can be used and whether there may be workarounds for known limitations. It is better to make a feature request as described here.

  • How to find duplicate words in two files?

    4
    0 Votes
    4 Posts
    6k Views
    Alan KilbornA

    @guy038 said in How to find duplicate words in two files?:

    Lexocographically Descending

    Yes, dammit.
    These type of typos are the death of me LATELY. :-(
    I actually realized the typo while I was napping and came back to my PC to fix it, and found you already had.

  • Replace dialog problem

    21
    0 Votes
    21 Posts
    2k Views
    PeterJonesP

    @PeterJones said in Replace dialog problem:

    “It works for me”. And I supply proof:

    Back to the “In Selection” being greyed out inappropriately: in this newer topic, a sequence was found that didn’t behave as expected. So there may actually be independent confirmation of this bug – three regulars to the forum can make this sequence give the odd behavior (greyed out inappropriately) reliably now.

    https://community.notepad-plus-plus.org/post/61035
  • Where is the user macro file?

    19
    0 Votes
    19 Posts
    4k Views
    prahladmifourP

    Hello,@Harry-Goldhagen
    In Windows, the macros are saved at %AppData%\Notepad++\shortcuts.XML

    Or

    In Windows < 7 the macros are saved at C:\Documents and Settings%username%\Application Data\Notepad++\shortcuts.xml
    In Windows 7|8|10 C:\Users%username%\AppData\Roaming\Notepad++\shortcuts.xml
    Note: You will need to close Notepad++ if you have any new macros you want to ‘export’.

    I hope this information will be useful to you.
    Thank you.

  • function list uncomplete

    7
    0 Votes
    7 Posts
    318 Views
    Roger PierreR

    @Alan-Kilborn one work-around is to define in language that it is C code.

    thanks for your help.

  • Sidebar Font Size

    2
    0 Votes
    2 Posts
    166 Views
    Alan KilbornA

    @Larry-Mars

    Probably not, but perhaps be a bit more specific about which “sidebar menu” you are talking about?

  • Replace partial text

    3
    0 Votes
    3 Posts
    281 Views
    Panagiotis AlexoulaP

    @Terry-R Yes!! Thats is thanks mate

  • Open files tabs - auto-sorted how?

    23
    0 Votes
    23 Posts
    2k Views
    Alan KilbornA

    @Maxitrol-Mat said in Open files tabs - auto-sorted how?:

    As you can see nothing has happened

    Developers have their priorities.
    They concentrate on bug fixes and new features that they feel will be useful to a majority of users.
    If they have time, and they feel a request is a nice addition, if maybe not useful to many, they will implement it.

    Your choices are to continue to whine…

    It appears the choice has been made!

    And really, you didn’t have to break this into ANOTHER thread; serves no purpose except to have any related comments be disjointed.

  • Notepad++ for mac is working or not

    5
    0 Votes
    5 Posts
    2k Views
    TroshinDVT

    @pickmax-deals said in Notepad++ for mac is working or not:

    can any one tell me the perfect working way?

    VirtualBox + Windows + Notepad++ - The most stable way.
    :) I believe that on Mac editors are inferior to Notepad ++

  • A Windows 10 update assaulted me, Notepad++ stood by silently

    1
    0 Votes
    1 Posts
    158 Views
    No one has replied
  • 0 Votes
    11 Posts
    2k Views
    PeterJonesP

    @Bharath-k said in Is there way to Search for duplicate records based on the column in notepad++ and delete the particular row:

    actual data i am not able to publish here due to its client data and i am not allowed to share.

    We understand that. When your “data sanitization” (removing secret info) is just putting in fake numbers and fake names (even fake column headers if you want), that’s one thing; the regex will likely still work, as long as it has the same type and width of data in each column. However, in your first post, you not only “sanitized” the data, you also changed the number of columns – that means that the regex is likely to change, because number of separators will be different, etc.

    The advice below might help you ask better questions next time, and reduce the number of back-and-forth exchanges before you have a working solution.

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as plain text using the </> toolbar button or manual Markdown syntax. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get… Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • How to clone current document, language included?

    18
    0 Votes
    18 Posts
    2k Views
    guy038G

    Hello, @dario-de-judicibus-0, @alan-kilborn, @peterjones, @astrosofista and All,

    Aaaah ! I’m sorry and apologize for making, all of you, searching hard ! It’s all my fault !

    Indeed, when @alan-kilborn said :

    From your description, your “workflow” for this doesn’t include anything which will cause Notepad++ itself to need to update shortcuts.xml

    I just thought that he was speaking about the fact of saving the shortcuts.xml file with Microsoft Notepad and not from within Notepad++ !

    But I understood, at once, all the story then @peterjones said :

    Start recording macro, type blah, backspace out blah, save, stop recording, save macro as blah

    Like you, when I decided to record a new macro and give it a name, and, after closing and restarting N++, all comments were gone away in shortcuts.xml, even those located outside the <Macros> node and, also, the default comments of the initial shortcuts.xml file, located in the UserDefinedCommands section, below :

    <!-- The following shortcuts are dangerous if your computer is compromised. (But if your computer is compromised, EVERYTHING IS DANGEROUS!) Remove the comment and use them at your own risk!!! <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="65">safari &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="Send via Outlook" Ctrl="yes" Alt="yes" Shift="yes" Key="79">outlook /a &quot;$(FULL_CURRENT_PATH)&quot;</Command> -->

    Wooooh, everything is, again, logic between all our configurations ;-))

    So, as any macro recording deletes all comments, a simple work-around would be to :

    Copy your present shortcuts.xml file as, say, shortcuts_comments.xml

    Comment all your macros already created, in the shortcuts_comments.xml, as you like to

    Record your new macro, in Notepad++

    Close and re-start Notepad++

    Open, both, the shortcuts.xml and shortcuts_comments.xml files, in N++

    Copy your new macro from the shortcuts.xml file

    Paste it in the shortcuts_comments.xml file

    Add the wanted comments in the shortcuts_comments.xml file, relative to this new macro

    Save the shortcuts_comments.xml file

    With this method, in addition to having a nice version with comments, that we may post in our site, we also benefit from a backup of the shortcuts.xml file. Indeed, if, by mistake, the shortcuts.xml is deleted, simply copy shortcuts_comments.xml as shortcuts.xml and your comments will even remain in shortcuts.xml until your next macro recording ;-))

    Best Regards,

    guy038

  • Golang support

    3
    0 Votes
    3 Posts
    714 Views
    PeterJonesP

    @CreativeQuilt

    I just checked the Scintilla source code … even their most recent version doesn’t appear to have Go – ie, I couldn’t find LexGo*.cpp in the source code, so unless there’s some other name other than Go or Golang that the language goes by, someone would have to make a Scintilla Feature Request to get the ball rolling.

    Update: https://sourceforge.net/p/scintilla/feature-requests/750/ shows “they” won’t do it. Though if i read correctly, “they” might allow someone else to contribute the lexer to their codebase.

  • how to append the numbers with specific string ??

    5
    0 Votes
    5 Posts
    521 Views
    PeterJonesP
    warning to future readers

    @kamal-lochan asked the identical question in a separate topic, where the dicussion continued.

    please don’t do that

    @kamal-lochan , This is frustrating to people who want to help you. I hadn’t read to the repost of your question yet, so I spent 10 minutes coming up with a reply and posted that; it wasn’t until another member messaged me to inform me that the question was re-asked there (and then @Alan-Kilborn posted here to let me know as well) that I found out you’d asked your question twice – and that others had already answered you hours ago.

  • Dark Mode?

    3
    0 Votes
    3 Posts
    5k Views
    Richard GoldsteinR

    Wow, thanks for the quick reply! I actually found Settings>Style Configurator right after I posted this, switched foreground & background colors, and pretty much got what I wanted. Perfect.
    Thanks again, Richard