• 0 Votes
    1 Posts
    171 Views
    No one has replied
  • Function List with comments after function name

    7
    1 Votes
    7 Posts
    829 Views
    Makwana PrahladM

    Hello,@Michael-Vincent

    Regex Explanation :

    (?i) - modifier to make the search case-insensitive
    (?<=^function) - positive lookbehind to find the position immediately preceded by the sub-string function at the start of the line
    \s+ - matches 1+ occurrences of a white-space character
    \K - forget everything matched so far
    \w+ - matches 1+ occurrences of all the characters which fall within the character class [a-zA-Z0-9_]
    Add the following parser tag to the file functionList.xml

    <parser id="mylang" displayName="mylang_syntax"> <function mainExpr="(?i)(?<=^function)\s+\K\w+" /> </parser>

    I hope this information will be useful.
    Thank you.

  • How can i sort out several letters from one word

    5
    0 Votes
    5 Posts
    308 Views
    Terry RT

    @Terry-R said in How can i sort out several letters from one word:

    or do you wish to remove/replace the found

    My bad, I see you do want to remove, so the replace function would work with the “Replace With” field left blank. Search mode would need to be “regular expression”.

    Terry

  • Compare two files and delete differences

    2
    0 Votes
    2 Posts
    2k Views
    Terry RT

    @Michael-Memphis said in Compare two files and delete differences:

    I need to match file one to file two and delete the non-matching lines

    I don’t use plugins, of which there are quite a few, and maybe one of those might have what you are looking for.

    However I would do it as follows.

    For the file with ONLY account numbers, append an a to the account number. For the file with other additional information append a b to the account number and if required copy that account number (with b) to the front of the line. Combine both files into 1 new file. Sort the file numerically. Thus an account with “a” would appear before the corresponding line from file #2 (which has a b appended to account number). Use a regular expression (regex) to remove all lines with the a appended or a b line where there is no corresponding a line. This can be completed in either 1 or 2 regexes. Also remove the appended b to clean up those lines.

    The result will be a new file #2. However the caveat is that now the file will have accounts in possibly a different order to what they were initially before combining and sorting. This can be overcome by additional steps in the process.

    You will note that I haven’t provided any regexes, as you haven’t provided any examples of how file 1 and 2 look. I’m not suggesting providing real data (possible confidentiality issues) but as the regexes can only be matched to real data we do need examples of how the data looks in order to better support you (replace some real data with dummy info of the same type). Please read the FAQ, primarily the post titled:
    FAQ Desk: Request for Help without sufficient information to help you
    Whilst this post refers more to problems running Notepad++, the use of codes to insert examples in your post will be of help.

    Terry

  • Need to turn laser gcode into plotter gcode

    2
    0 Votes
    2 Posts
    296 Views
    Alan KilbornA

    @Ann-Other said in Need to turn laser gcode into plotter gcode:

    Is it possible to make it automatic so that I give notepad the file name and it gives me back the amended file?

    What you could do is record a macro with several replacement operations in it.
    Then when you have loaded your file into N++, run the macro.

  • NP++ 7.8.8 - pt-br - issue when try tiping "í" and "é"

    1
    0 Votes
    1 Posts
    149 Views
    No one has replied
  • Problem with the latest update 7.8.7 - slow to climb to the top

    7
    0 Votes
    7 Posts
    439 Views
    Emo SerE

    @Ekopalypse

    Peace, mercy and blessings of God Almighty

    Thank you for your response

    And I apologize for the delay in responding

    In large files, I have not tried small files

    But the comment of the honorable brother above, clarifies the problem

    Thanks again

  • How do you dock the CSV Query Plugin window?

    2
    0 Votes
    2 Posts
    272 Views
    EkopalypseE

    @dsnodder

    by slowly moving the window to that position!!??

  • setting font in both views (normal and other) How?

    5
    0 Votes
    5 Posts
    1k Views
    MacNalaM

    I think we can consider this question closed. Thanks for pointing me in the right direction.

  • Combining content of files?

    16
    0 Votes
    16 Posts
    954 Views
    EkopalypseE

    @Sarah-Duong

    Yes, as I said, DeepL does not support as many languages as Google, Microsoft etc… yet.
    In my opinion, the secret of a good translation is to be as accurate as possible in your native language.
    Furthermore, I proceed in such a way that I check whether the translated text can be meaningfully retranslated.
    If so, then it will be understandable, at least I hope so.
    Example data should NEVER be translated, otherwise exactly what you have described can happen.

  • IMVU xrf/crf Files

    5
    0 Votes
    5 Posts
    643 Views
    Kelsie SantosK

    @PeterJones

    Alright. Thanks.

  • Character Line Marker?

    4
    0 Votes
    4 Posts
    454 Views
    Martin RuppeM

    Yes, of couse. Many thanks.

  • folder as workplace window causes npp to close during a build

    7
    0 Votes
    7 Posts
    514 Views
    EkopalypseE

    @Mark-Russell-0

    I have tried to reproduce this crash but unfortunately I failed.
    Like you, I created 7 directories and added them in FAW.
    Then I created another 217 directories and 21000 files in these 7 directories.

    As a test I have now modified all 21000 files - Npp is not crashed.

    Maybe I haven’t reached the limit yet or there is still something you have to do to reproduce the crash.

  • problems with installing on windows

    2
    0 Votes
    2 Posts
    187 Views
  • AutoComplete: Keyword commands call tips?

    2
    0 Votes
    2 Posts
    364 Views
  • How to quit Notepad++ softly?

    7
    0 Votes
    7 Posts
    612 Views
    guthubnikG

    @PeterJones,

    sorry it was my mistake - I tried to search for this button it in FAQ desk.
    Here is the issue:

    Missing a command to close Notepad++ softly to avoid loss of recently changed settings (Issue: #8484)
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8484

  • How to create a UDL just to highlight things in smart quotes?

    5
    0 Votes
    5 Posts
    480 Views
    tomunderT

    Ahh. I didn’t look closely enough at your screen shot. That explains it.

    Thanks for taking the time to help.

  • Please post a bug if not known yet

    1
    0 Votes
    1 Posts
    153 Views
    No one has replied
  • Save As dialog keeps popping up

    6
    0 Votes
    6 Posts
    3k Views
    Mr ZsomethingM

    @Alan-Kilborn That would be pretty neat, I may do that.
    Thank you!

  • Add VHDL to functionList.xml and interpret port map as class

    12
    2 Votes
    12 Posts
    941 Views
    el-coder-sbE

    @MAPJe71 Thanks a lot for your effort!
    So I think this topic has come to an (temporary?) end.
    With your last solution most of the possibilities are covered.
    Everyone who needs 3 & 1e covered can use my last post (at least as good point to start from).

    If anyone else has any idea how to cover all the possibilities, feel free to post your ideas :-)